Skip to content

Commit 218c782

Browse files
juhgiyoclaude
andauthored
Use snapshot mode for manual workflow dispatch (#4)
## Summary - Fix release workflow failing when triggered manually via `workflow_dispatch` - GoReleaser requires a git tag for `release` — manual triggers now use `build --snapshot --clean` instead - Tag-triggered runs continue using `release --clean` as before ## Test plan - [ ] Trigger workflow manually from GitHub Actions UI — should succeed with snapshot build - [ ] Push a `v*` tag — should create a full release as before 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 00ce426 commit 218c782

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ jobs:
2626
uses: goreleaser/goreleaser-action@v7
2727
with:
2828
version: "~> v2"
29-
args: release --clean
29+
args: ${{ github.event_name == 'workflow_dispatch' && 'build --snapshot --clean' || 'release --clean' }}
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)