Commit b22c09a
committed
Fix GoReleaser homebrew publish to actually use the PR flow
The brew publish on v0.0.1-beta failed because GoReleaser was trying
to push the formula directly to homebrew-tap's `main` branch (blocked
by branch protection), then attempted a fork-sync (no fork exists),
then gave up.
Two config bugs:
1. `repository.branch` wasn't set, so GoReleaser defaulted to `main`
and pushed there instead of creating a feature branch. Set it to
`band-{{.Version}}` so each release gets its own branch.
2. `pull_request.base.owner` and `base.name` were set to the same
values as `repository.owner/name`, which makes GoReleaser think
this is a cross-repo (fork-based) PR flow. Remove them — when
only `base.branch` is set, GoReleaser uses the same-repo
branch-and-PR flow, which is what we want here.
Also name the formula `band.rb` explicitly (via `brews[].name: band`)
so `brew install Bandwidth/tap/band` resolves — the default was
`cli.rb` (after the repo name), which didn't match the binary name.1 parent f2150c0 commit b22c09a
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
63 | | - | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments