Use external Homebrew tap and auto-bump formula on release#1
Open
rkabrick wants to merge 2 commits into
Open
Conversation
- Point README install instructions at the tactcomplabs/mackage tap instead of the local tap-new workaround. - Remove the in-repo Formula/mackage.rb; the formula now lives solely in tactcomplabs/homebrew-mackage (single source of truth). - Add a workflow that bumps url+sha256 in the tap on each published release (and via manual dispatch for a given tag).
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
Now that tactcomplabs/homebrew-mackage exists as a proper Homebrew tap, this wires the main repo up to it.
brew tap tactcomplabs/mackage && brew install mackage— drops the oldbrew tap-new local/mackagecopy workaround.Formula/mackage.rb: the formula lives solely in the tap repo now (single source of truth, no drift)..github/workflows/bump-homebrew-tap.yml: on each published release (or manual dispatch with a tag), it recomputes the tarball sha256 and commits the bumpedurl/sha256into the tap.One required setup step
The bump workflow pushes to a different repo, so the default
GITHUB_TOKENisn't enough. Add a token secret on this repo:```sh
Fine-grained PAT: resource owner tactcomplabs, repo homebrew-mackage, Contents: read/write
(or a classic PAT with
reposcope)gh secret set HOMEBREW_TAP_TOKEN -R tactcomplabs/mackage
```
Testing
brew install+brew audit --strict --onlineall verified green before this PR.tag: v1.0.0to confirm it round-trips.