Skip to content

Commit d86f6ef

Browse files
authored
#3 Create deploy.yml
1 parent 77e33fa commit d86f6ef

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.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 CSlant Server
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
deploy:
9+
runs-on: self-hosted
10+
steps:
11+
- name: Deploy to Remote Host
12+
uses: appleboy/ssh-action@master
13+
with:
14+
host: ${{ secrets.REMOTE_HOST }}
15+
username: ${{ secrets.REMOTE_USERNAME }}
16+
password: ${{ secrets.REMOTE_PASS }}
17+
key: ${{ secrets.SSH_PRIVATE_KEY }}
18+
port: ${{ secrets.REMOTE_PORT }}
19+
script: |
20+
${{ vars.BLOG_API_RUNNER_COMMAND }}

0 commit comments

Comments
 (0)