Skip to content

Commit 9bcfbd3

Browse files
committed
fix: Use rsync --delete to clear removed files in target repos
GitHub Actions workflow now syncs files with rsync --delete flag: - Copies new/modified files from build to target repo - Removes files that were deleted from source - Replaces manual rm and cp with atomic rsync operation Fixes issue where deleted files persisted in target repositories, creating stale code illusion. Now all 9 target repos stay in sync. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 4a62535 commit 9bcfbd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ jobs:
6666
6767
git reset --hard HEAD 2>/dev/null || true
6868
git clean -fdx
69-
rm -rf dist/
70-
cp -r "$BUILD_DIR"/. .
69+
70+
rsync -av --delete "$BUILD_DIR"/ .
7171
7272
git add -A
7373
if ! git diff-index --quiet HEAD --; then

0 commit comments

Comments
 (0)