Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
olegsvs committed Sep 29, 2024
1 parent 8996aae commit 9436f5b
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Rollup

on:
push:
branches: [ "test" ]
branches: [ "deploy_testing" ]

jobs:
build:
Expand All @@ -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/[email protected]
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

0 comments on commit 9436f5b

Please sign in to comment.