From 9436f5b29344e9a2547a1b1574626cded69bcdf1 Mon Sep 17 00:00:00 2001 From: olegsvs Date: Sun, 29 Sep 2024 20:20:20 +0300 Subject: [PATCH] Update workflow --- .github/workflows/node.js.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 95e880b0..c6e0871d 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -2,7 +2,7 @@ name: Rollup on: push: - branches: [ "test" ] + branches: [ "deploy_testing" ] jobs: build: @@ -22,17 +22,3 @@ jobs: # check build is ok - run: npm install - run: npm run build --if-present - - deploy: - needs: build - runs-on: ubuntu-latest - steps: - - name: executing remote ssh commands using password - uses: appleboy/ssh-action@v1.0.3 - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - port: ${{ secrets.PORT }} - command_timeout: 5m - script: cd ${{ secrets.TEST_APP_PATH }} && git pull && npm install && npm run build && sudo systemctl stop nginx && rm -rf test_build && cp -rf build test_build && sudo systemctl start nginx