[ci] update version.json when new tag pushed

This commit is contained in:
dijunkun
2025-11-11 17:37:11 +08:00
parent 2f83301de7
commit 5bd5b002d1

View File

@@ -394,10 +394,11 @@ jobs:
cat version.json cat version.json
- name: Upload version.json to server - name: Upload version.json to server
uses: appleboy/scp-action@v0.1.7 uses: burnett01/rsync-deployments@5.2
with: with:
host: ${{ secrets.SERVER_HOST }} switches: -avzr --delete
username: ${{ secrets.SERVER_USER }} path: version.json
key: ${{ secrets.SERVER_KEY }} remote_path: /var/www/html/version/
source: "version.json" remote_host: ${{ secrets.SERVER_HOST }}
target: "/var/www/html/version.crossdesk.cn/" remote_user: ${{ secrets.SERVER_USER }}
remote_key: ${{ secrets.SERVER_KEY }}