ci: 调整workflow

- 使用action进行rsync
This commit is contained in:
2025-09-24 17:23:21 +08:00
parent ad66ae1b46
commit db49e74110

View File

@ -37,4 +37,10 @@ jobs:
- name: Build project - name: Build project
run: pnpm run build run: pnpm run build
- name: Rsync build artifact to server - 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 }}