Repository navigation
ci: publish the Homebrew formulas to the tap without brews - #72
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
brewsblocks from.goreleaser.yml: GoReleaser dropsbrewsin v3 (Generate the Homebrew formula ourselves before GoReleaser dropsbrews#62).release.ymlwith a push to the tap: the tap is checked out withPERSONAL_ACCESS_TOKEN,scripts/homebrew-formula.shwritesopsi.rbandopsi@<version>.rbintoFormula/, then commit and push. Nothing is committed if the tap already has the same formulas.Notes
Brew formula update for opsi version X); the author is nowgithub-actions[bot]instead ofgoreleaserbot, since git needs an identity on the runner.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