From 753809f519faec6247ae9cbd851ec5809ab3f5a7 Mon Sep 17 00:00:00 2001 From: Arthur Danjou Date: Wed, 16 Dec 2020 16:42:06 +0100 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 7869188..1905310 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Deploy to SSH uses: appleboy/ssh-action@v0.1.4 - with: + with: host: ${{ secrets.SSH_HOST }} port: ${{ secrets.SSH_PORT }} username: ${{ secrets.SSH_USER }} @@ -20,15 +20,15 @@ jobs: script: | cd ${{ secrets.PATH }} git pull origin master - - + + build: needs: [deploy] runs-on: ubuntu-latest steps: - name: Build uses: appleboy/ssh-action@v0.1.4 - with: + with: host: ${{ secrets.SSH_HOST }} port: ${{ secrets.SSH_PORT }} username: ${{ secrets.SSH_USER }} @@ -36,19 +36,19 @@ jobs: script: | cd ${{ secrets.PATH }} yarn install - yarn generate - + yarn build + run: needs: [build] runs-on: ubuntu-latest steps: - name: Build uses: appleboy/ssh-action@v0.1.4 - with: + with: host: ${{ secrets.SSH_HOST }} port: ${{ secrets.SSH_PORT }} username: ${{ secrets.SSH_USER }} key: ${{ secrets.SSH_KEY }} script: | cd ${{ secrets.PATH }} - netlify deploy -p + pm2 restart artapi