Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
Added step to restart next after deploying
  • Loading branch information
alaboso authored Jan 31, 2024
1 parent 272f16c commit 4bf7fbe
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,20 @@ jobs:
port: ${{ secrets.PORT }}
source: .next/*
target: /usr/knhts/moh-knhts-web
strip_components: 1

restart_next:

runs-on: ubuntu-latest

needs: build_and_deploy

steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: cd /usr/knhts/moh-knhts-web && sh deploy.sh

0 comments on commit 4bf7fbe

Please sign in to comment.