ci: 为项目添加CI/CD功能 #30
@ -37,10 +37,11 @@ jobs:
|
||||
- name: Build project
|
||||
run: pnpm run build
|
||||
- name: Rsync build artifact to server
|
||||
uses: tempersama/rsync-action@2.3
|
||||
uses: easingthemes/ssh-deploy@main
|
||||
with:
|
||||
host: ${{ secrets.rsync_host }}
|
||||
username: ${{ secrets.rsync_username }}
|
||||
source: ${{ secrets.rsync_source }}
|
||||
destination: ${{ secrets.rsync_destination }}
|
||||
key: ${{ secrets.rsync_key }}
|
||||
ARGS: "-rlgoDzvc -i --delete"
|
||||
REMOTE_HOST: ${{ secrets.rsync_host }}
|
||||
REMOTE_USER: ${{ secrets.rsync_username }}
|
||||
SOURCE: ${{ secrets.rsync_source }}
|
||||
TARGET: ${{ secrets.rsync_destination }}
|
||||
SSH_PRIVATE_KEY: ${{ secrets.rsync_key }}
|
||||
|
||||
Reference in New Issue
Block a user