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