ci: 调整workflow
All checks were successful
deploy to server / build-and-deploy (push) Successful in 4m30s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 4m30s
- 修改部署所使用的action
This commit is contained in:
@ -37,10 +37,11 @@ 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
|
||||||
uses: tempersama/rsync-action@2.3
|
uses: easingthemes/ssh-deploy@main
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.rsync_host }}
|
ARGS: "-rlgoDzvc -i --delete"
|
||||||
username: ${{ secrets.rsync_username }}
|
REMOTE_HOST: ${{ secrets.rsync_host }}
|
||||||
source: ${{ secrets.rsync_source }}
|
REMOTE_USER: ${{ secrets.rsync_username }}
|
||||||
destination: ${{ secrets.rsync_destination }}
|
SOURCE: ${{ secrets.rsync_source }}
|
||||||
key: ${{ secrets.rsync_key }}
|
TARGET: ${{ secrets.rsync_destination }}
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.rsync_key }}
|
||||||
|
|||||||
Reference in New Issue
Block a user