Skip to content

Commit f043221

Browse files
committed
ci: add deploy action
1 parent 3e072b1 commit f043221

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy to server
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
deploy-to-server:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check
9+
uses: actions/checkout@v4
10+
11+
- name: ssh deploy
12+
uses: easingthemes/[email protected]
13+
with:
14+
SSH_PRIVATE_KEY: ${{ secrets.PANEL_CN_HOST_KEY }}
15+
REMOTE_HOST: ${{ secrets.PANEL_CN_HOST }}
16+
REMOTE_USER: ${{ secrets.PANEL_CN_HOST_USERNAME }}
17+
SOURCE: ./
18+
TARGET: /opt/1panel/docs/
19+
# Arguments to pass to rsync
20+
ARGS: "-rltgoDzvO --delete"
21+
# An array of folder to exclude
22+
EXCLUDE: ".git/"

0 commit comments

Comments
 (0)