ci: 调整workflow
- 使用action进行rsync
This commit is contained in:
@ -37,4 +37,10 @@ jobs:
|
||||
- name: Build project
|
||||
run: pnpm run build
|
||||
- name: Rsync build artifact to server
|
||||
run: rsync -avz --delete .output/ remilia@192.168.86.5:/home/remilia/Jinshenwebsite/front-build
|
||||
uses: tempersama/rsync-action@2.3
|
||||
with:
|
||||
host: {{ secrets.rsync_host }}
|
||||
username: {{ secrets.rsync_username }}
|
||||
source: {{ secrets.rsync_source }}
|
||||
destination: {{ secrets.rsync_destination }}
|
||||
key: {{ secrets.rsync_key }}
|
||||
|
||||
Reference in New Issue
Block a user