Skip to content

Commit ffff257

Browse files
Copilotideag
andauthored
Fix rsync error 23 in deploy-website workflow
Replace -a flag with explicit flags and add -L to follow symlinks. Add --no-perms --no-owner --no-group to avoid permission issues. This prevents "some files/attrs were not transferred" error. Agent-Logs-Url: https://github.com/tinypluginlabs/demo/sessions/6538ea5e-cb6c-487b-ac52-a6ae64e119e0 Co-authored-by: ideag <3252474+ideag@users.noreply.github.com>
1 parent fc28401 commit ffff257

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/deploy-website.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ jobs:
8585
chmod 644 ~/.ssh/known_hosts
8686
8787
# Deploy website files using rsync
88-
rsync -avz -e "ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=yes" --delete \
88+
# -r: recursive, -t: preserve times, -v: verbose, -z: compress
89+
# -L: follow symlinks and copy actual files (prevents error 23 with broken symlinks)
90+
# --no-perms --no-owner --no-group: don't preserve ownership/permissions (may not be allowed on server)
91+
# --delete: remove files on destination that don't exist in source
92+
rsync -rtvzL --no-perms --no-owner --no-group -e "ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=yes" --delete \
8993
dist/packages/playground/wasm-wordpress-net/ \
9094
${{ secrets.CLOUDWAYS_SSH_USER }}@${{ secrets.CLOUDWAYS_SSH_HOST }}:${{ secrets.CLOUDWAYS_DEPLOY_PATH }}
9195

0 commit comments

Comments
 (0)