[feat] use rsync instead of appleboy/scp-action to update artifacts

This commit is contained in:
dijunkun
2025-08-29 09:56:20 +08:00
parent cf9dc0a9a5
commit fbcd4c21cf

View File

@@ -346,10 +346,11 @@ jobs:
generate_release_notes: false
- name: Upload artifacts to server
uses: appleboy/scp-action@v0.1.7
uses: burnett01/rsync-deployments@5.2
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_KEY }}
source: "release/*"
target: "/var/www/html/downloads/"
switches: -avzr --progress
path: release/*
remote_path: /var/www/html/downloads/
remote_host: ${{ secrets.SERVER_HOST }}
remote_user: ${{ secrets.SERVER_USER }}
remote_key: ${{ secrets.SERVER_KEY }}