Skip to content

Commit 431b877

Browse files
ale-rinaldiclaude
andcommitted
Fix gh-pages deploy: clean untracked build artifacts before commit
Build artifacts (dist/, internal/, webmanager/) were leaking into the gh-pages branch because git checkout doesn't remove untracked files. Add git clean -fd after switching branches. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1cbe420 commit 431b877

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
4444
git checkout gh-pages
4545
46+
# Clean untracked files left over from the build step
47+
git clean -fd
48+
4649
# Remove old builds for this branch, keep others
4750
rm -rf "$BRANCH"
4851
mkdir -p "$BRANCH"

0 commit comments

Comments
 (0)