Skip to content

feat(release): publish Homebrew cask to ryanlewis/homebrew-tap#84

Merged
ryanlewis merged 2 commits into
mainfrom
homebrew-tap
May 9, 2026
Merged

feat(release): publish Homebrew cask to ryanlewis/homebrew-tap#84
ryanlewis merged 2 commits into
mainfrom
homebrew-tap

Conversation

@ryanlewis
Copy link
Copy Markdown
Owner

Summary

  • Wires up GoReleaser's homebrew_casks: block so each tagged release auto-publishes Casks/things.rb to ryanlewis/homebrew-tap
  • Users can install with brew install ryanlewis/tap/things — surfaced as the first install option in README and docs site
  • Uses homebrew_casks rather than brews because GoReleaser deprecated brews: in v2.10 in favour of casks for distributing pre-compiled binaries (no warnings on goreleaser check)
  • Includes a postflight xattr hook to strip com.apple.quarantine from the binary, since we don't codesign the release artifacts

Closes #14.

Prerequisites already in place

  • ryanlewis/homebrew-tap repo created
  • HOMEBREW_TAP_GITHUB_TOKEN secret configured in this repo (fine-grained PAT with Contents: Read and write on the tap repo only, expires 2027-04-30)

Test plan

  • goreleaser check passes with no deprecation warnings
  • goreleaser release --snapshot --clean --skip=publish generates a syntactically valid dist/homebrew/Casks/things.rb with per-arch URLs (amd64 + arm64), correct sha256s, and the postflight xattr block
  • After merge: cut a v0.3.0 tag and confirm the Release workflow pushes Casks/things.rb to ryanlewis/homebrew-tap
  • On a clean Mac: brew install ryanlewis/tap/things && things --version works end-to-end

ryanlewis added 2 commits May 9, 2026 16:54
Wire up GoReleaser's homebrew_casks block so each tagged release
auto-publishes Casks/things.rb to ryanlewis/homebrew-tap, enabling
`brew install ryanlewis/tap/things`.

- .goreleaser.yaml: homebrew_casks block (preferred over deprecated
  brews:) targeting ryanlewis/homebrew-tap, with quarantine xattr
  removal hook for unsigned binaries
- .github/workflows/release.yml: pass HOMEBREW_TAP_GITHUB_TOKEN secret
  into goreleaser step
- README.md and docs/_tabs/install.md: surface brew install as the
  recommended install path

Closes #14
@ryanlewis ryanlewis merged commit 7d319a4 into main May 9, 2026
1 check passed
@ryanlewis ryanlewis deleted the homebrew-tap branch May 9, 2026 22:10
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.

Publish Homebrew formula via a tap (ryanlewis/homebrew-tap)

1 participant