Skip to content

Commit 6d2df1b

Browse files
committed
Add GitHub Actions deployment
1 parent 16d2f41 commit 6d2df1b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Execute deployment script
14+
uses: appleboy/ssh-action@v1.2.2
15+
with:
16+
host: ${{ secrets.HOST }}
17+
username: ${{ secrets.USERNAME }}
18+
key: ${{ secrets.SSH_PRIVATE_KEY }}
19+
script: |
20+
~/sync-hsc.sh

0 commit comments

Comments
 (0)