commit 742064a538f4dfd67a0c2f63f3a48023a6a8fde4
parent 8972d44e8b39923d82288a7c34ce62ed50b4261a
Author: Brian Graham <brian@buildingbetterteams.de>
Date: Mon, 13 Apr 2026 16:13:21 +0200
CI: exclude artifacts/ from rsync --delete
The --delete flag on dashboard rsync was wiping artifacts/ on every
deploy. If the artifact rsync then failed (no artifacts on CI runner),
the game previews were gone. Now --exclude='artifacts/' preserves
previously deployed games.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml
@@ -59,8 +59,9 @@ jobs:
echo "Deploying to $TARGET"
- # Deploy dashboard build
- rsync -av --delete \
+ # Deploy dashboard build (exclude artifacts/ from --delete so
+ # a failed artifact sync doesn't wipe previously deployed games)
+ rsync -av --delete --exclude='artifacts/' \
-e "ssh -i /tmp/deploy_key -o StrictHostKeyChecking=no" \
./dashboard/dist/ ${{ secrets.USERNAME }}@${{ secrets.HOST }}:${SITE_BASE}/${SITE_NAME}/$TARGET/