From bba1449aa95ea5105322e9f321cdfef9caf5361f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Sun, 27 Nov 2022 17:00:35 -0300 Subject: [PATCH] Update workflow --- .github/workflows/deploy.yml | 29 ++++++++++++++--------------- package.json | 2 +- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6a48d84..4af45ce 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,27 +2,26 @@ name: Deploy on: push: - branches: [ "main" ] + branches: ["main"] jobs: build-and-deploy: - runs-on: ubuntu-latest env: SSH_KEY: ${{secrets.SSH_KEY}} steps: - - uses: actions/checkout@v3 - - name: Use Node.js 16 - uses: actions/setup-node@v3 - with: - node-version: 16 - cache: 'npm' - - run: npm install - - run: npm run build - - run: mkdir ~/.ssh - - run: echo "$SSH_KEY" >> ~/.ssh/id_ed25519_embroideryviewer - - run: chmod 400 ~/.ssh/id_ed25519_embroideryviewer - - run: echo -e "Host embroideryviewer\n\tUser embroideryviewer\n\tHostname 45.76.5.44\n\tIdentityFile ~/.ssh/id_ed25519_embroideryviewer\n\tStrictHostKeyChecking No" >> ~/.ssh/config - - run: rsync -avz --progress dist/ embroideryviewer:embroideryviewer/web/prod + - uses: actions/checkout@v3 + - name: Use Node.js 16 + uses: actions/setup-node@v3 + with: + node-version: 16 + cache: "npm" + - run: npm install + - run: npm run build + - run: mkdir ~/.ssh + - run: echo "$SSH_KEY" >> ~/.ssh/id_rsa_embroideryviewer + - run: chmod 400 ~/.ssh/id_rsa_embroideryviewer + - run: echo -e "Host embroideryviewer\n\tUser embroideryviewer\n\tHostname 45.76.5.44\n\tIdentityFile ~/.ssh/id_rsa_embroideryviewer\n\tStrictHostKeyChecking No" >> ~/.ssh/config + - run: rsync -avz --progress dist/ embroideryviewer:embroideryviewer/web/prod diff --git a/package.json b/package.json index 31041cc..3345120 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "embroidery-viewer", "private": true, - "version": "1.1.0", + "version": "1.0.1", "type": "module", "scripts": { "dev": "vite",