-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f394ac
commit 2c24d8f
Showing
14 changed files
with
344 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
name: remote ssh command | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
branches: ['main'] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: executing remote ssh commands using password | ||
uses: appleboy/ssh-action@v0.1.7 | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.EC2_SSH_KEY }} | ||
port: 22 | ||
script: | | ||
- name: executing remote ssh commands using password | ||
uses: appleboy/ssh-action@v0.1.7 | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.EC2_SSH_KEY }} | ||
port: 22 | ||
script: | | ||
cd awap-dashboard-2024 | ||
pm2 stop server | ||
pm2 delete server | ||
git pull | ||
sudo npm install | ||
sudo npm run build | ||
pm2 start npm --name server -- run start | ||
pm2 start npm --name server -- run start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.