Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TenDRILLL authored Apr 29, 2024
1 parent e15b4ee commit b41320b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: SSH Remote Commands
- name: CP files and Build
uses: appleboy/ssh-action@v1.0.3
with:
key: ${{ secrets.SSH_KEY }}
host: ${{ secrets.SSH_IP }}
username: ${{ secrets.SSH_USERNAME }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
request_pty: true
script: |
cd /home/ten/node/headpat
git pull origin uwu
rm -rf dist
mkdir -p dist/html
npm run build
- name: Restart Headpat
uses: appleboy/ssh-action@v1.0.3
with:
key: ${{ secrets.SSH_KEY }}
host: ${{ secrets.SSH_IP }}
username: ${{ secrets.SSH_USERNAME }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
request_pty: true
script: |
sudo systemctl restart headpat

0 comments on commit b41320b

Please sign in to comment.