Skip to content

ci: move release trigger to 'release: published' - #2

Merged
DTTerastar merged 1 commit into
mainfrom
chore/publish-on-release-event
Apr 20, 2026
Merged

ci: move release trigger to 'release: published'#2
DTTerastar merged 1 commit into
mainfrom
chore/publish-on-release-event

Conversation

@DTTerastar

Copy link
Copy Markdown
Contributor

Summary

Previously: tag-push triggered goreleaser which created a draft release AND pushed the cask to the tap immediately. The draft flag only gated the GitHub release object — the Homebrew cask shipped pointing at draft-release assets that 404 for non-admins. Incoherent.

New flow:

  1. gh release create vX.Y.Z --draft --generate-notes (or create in UI)
  2. Review the draft
  3. Publish the draft when ready → release: published event fires this workflow → goreleaser uploads binaries and pushes the cask atomically

Changes

  • .github/workflows/release.yml — trigger on: release: types: [published]
  • .goreleaser.yml — drop release.draft: true (drafts are now externally managed); add skip_upload: auto so prereleases don't push to tap
  • Delete .github/release-drafter.yml + workflow — replaced by gh release create --draft --generate-notes

Test plan

  • Merge this PR
  • gh release create v0.1.1 --draft --generate-notes
  • Publish the draft from the UI or gh release edit v0.1.1 --draft=false
  • Verify Release workflow runs, binaries upload, cask lands in quantcli/homebrew-tap

🤖 Generated with Claude Code

Goreleaser on tag-push was incoherent: the 'release.draft: true' flag
only affected the GitHub release object, while the Homebrew tap push
fired immediately — so drafts shipped broken casks pointing at assets
only admins could download.

New flow:
  - draft created by 'gh release create --draft' (or the UI)
  - user reviews and publishes when ready
  - 'release: published' event fires this workflow
  - goreleaser uploads assets and pushes cask atomically

Also add 'skip_upload: auto' so casks are skipped for prerelease tags,
and drop release-drafter (replaced by manual 'gh release create').

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@DTTerastar
DTTerastar merged commit 280d391 into main Apr 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant