Skip to content

Fix Homebrew tap installation#3

Merged
Alexanderamiri merged 1 commit intomainfrom
fix/homebrew-tap
Mar 20, 2026
Merged

Fix Homebrew tap installation#3
Alexanderamiri merged 1 commit intomainfrom
fix/homebrew-tap

Conversation

@Alexanderamiri
Copy link
Contributor

Summary

  • Created the javaBin/homebrew-tap repo as public (required for brew install without auth)
  • Added HOMEBREW_TAP_TOKEN to GoReleaser config — the default GITHUB_TOKEN is scoped to this repo and can't push the formula to the tap repo
  • Added .gitignore and removed accidentally committed 16MB binary

Before merging

A HOMEBREW_TAP_TOKEN repo secret needs to be created:

  1. Create a fine-grained PAT at https://github.com/settings/personal-access-tokens with Contents: Read and write access to javaBin/homebrew-tap
  2. Add it as a secret named HOMEBREW_TAP_TOKEN in this repo's settings

After merging

Tag a release to trigger GoReleaser:

git tag v0.1.0
git push origin v0.1.0

Users can then install with:

brew install javaBin/tap/javabin

- Add HOMEBREW_TAP_TOKEN to GoReleaser config so it can push the
  formula to javaBin/homebrew-tap (GITHUB_TOKEN is scoped to this repo)
- Pass the token in the release workflow
- Add .gitignore and remove accidentally committed binary
@Alexanderamiri Alexanderamiri merged commit 621cfc9 into main Mar 20, 2026
@Alexanderamiri Alexanderamiri deleted the fix/homebrew-tap branch March 20, 2026 14:02
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