Skip to content

Commit da6571e

Browse files
authored
Merge pull request #10 from tinypluginlabs/copilot/fix-deploy-website-workflow-fail
Fix rsync error 23 in Cloudways deployment
2 parents e9f2f08 + ffff257 commit da6571e

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)