Skip to content

ci: publish the Homebrew formulas to the tap without brews - #72

Merged
beliven-alex-zongaro merged 4 commits into
mainfrom
ci/homebrew-formula-generation
Oct 7, 2026
Merged

beliven-alex-zongaro merged 4 commits into
mainfrom
ci/homebrew-formula-generation

Conversation

@beliven-alex-zongaro

Copy link
Copy Markdown
Contributor

Summary

  • Remove the two brews blocks from .goreleaser.yml: GoReleaser drops brews in v3 (Generate the Homebrew formula ourselves before GoReleaser drops brews #62).
  • Replace the "Check generated Homebrew formulas" step of release.yml with a push to the tap: the tap is checked out with PERSONAL_ACCESS_TOKEN, scripts/homebrew-formula.sh writes opsi.rb and opsi@<version>.rb into Formula/, then commit and push. Nothing is committed if the tap already has the same formulas.
  • Both steps are skipped for pre-releases, so a release candidate never touches the tap.

Notes

  • The commit message is the same as before (Brew formula update for opsi version X); the author is now github-actions[bot] instead of goreleaserbot, since git needs an identity on the runner.
  • The generation was already verified against the output of brews (2.0.0-rc.1) and the generation plus push logic locally against a scratch tap. The push from the workflow can only be seen on the next real release, because pre-releases skip it.

Closes #62

🤖 Generated with Claude Code

beliven-alex-zongaro and others added 4 commits October 6, 2026 17:31
With skip_upload: auto GoReleaser still renders the formulas but pushes
them only for versions without a pre-release suffix, so a release like
2.0.0-rc.1 can exercise the workflow without changing what brew installs.

Refs #62

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
GoReleaser removes brews in v3. The formulas are generated by
scripts/homebrew-formula.sh and pushed to the tap by
scripts/homebrew-publish.sh, in a step the pre-releases skip.

Refs #62

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…t/opsi into ci/homebrew-formula-generation

# Conflicts:
#	.goreleaser.yml
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@beliven-alex-zongaro
beliven-alex-zongaro merged commit 04a13c6 into main Oct 7, 2026
1 check passed
@beliven-alex-zongaro
beliven-alex-zongaro deleted the ci/homebrew-formula-generation branch October 7, 2026 09:34
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.

Generate the Homebrew formula ourselves before GoReleaser drops brews

1 participant