[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 generate_release_notes: false
- name: Upload artifacts to server - name: Upload artifacts to server
uses: appleboy/scp-action@v0.1.7 uses: burnett01/rsync-deployments@5.2
with: with:
host: ${{ secrets.SERVER_HOST }} switches: -avzr --progress
username: ${{ secrets.SERVER_USER }} path: release/*
key: ${{ secrets.SERVER_KEY }} remote_path: /var/www/html/downloads/
source: "release/*" remote_host: ${{ secrets.SERVER_HOST }}
target: "/var/www/html/downloads/" remote_user: ${{ secrets.SERVER_USER }}
remote_key: ${{ secrets.SERVER_KEY }}