Commit 0b243bf
fix(ci): restore internal/ui/dist/.gitkeep after UI rebuild in release.yml (#125)
GoReleaser aborts with 'git is in a dirty state' when the release tag commits
internal/ui/dist/.gitkeep (as scripts/release.sh does via `touch`): release.yml
rebuilds the UI, vite's emptyOutDir deletes the committed .gitkeep, and the
resulting 'D internal/ui/dist/.gitkeep' fails GoReleaser's clean-tree check.
Restore the placeholder after the rebuild so the tree matches the tag. No-op
for tags that don't track .gitkeep (e.g. v0.3.1). Unblocks the v0.4.0-beta.1
signed-artifact build via workflow_dispatch recovery.
Claude-Session: https://claude.ai/code/session_01LDQVJrixs2nJoea67a8pEG
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent d738863 commit 0b243bf
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
| |||
0 commit comments