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