Skip to content

release: wire GoReleaser + Homebrew tap for v0.7.0#35

Merged
zpenka merged 1 commit into
mainfrom
release/goreleaser
May 8, 2026
Merged

release: wire GoReleaser + Homebrew tap for v0.7.0#35
zpenka merged 1 commit into
mainfrom
release/goreleaser

Conversation

@zpenka
Copy link
Copy Markdown
Owner

@zpenka zpenka commented May 7, 2026

Summary

  • .goreleaser.yaml: multi-arch builds (darwin/linux x amd64/arm64, CGO_ENABLED=0), tar.gz archives, checksums, and a Homebrew formula pushed to zpenka/homebrew-lore on each tagged release
  • .github/workflows/release.yml: triggers on v* tag pushes; runs GoReleaser v2 with GITHUB_TOKEN + HOMEBREW_TAP_GITHUB_TOKEN
  • lore.go: Version promoted from const to var (so GoReleaser ldflags can override it at link time); bumped to 0.7.0
  • README.md: brew install zpenka/lore/lore added to quick start

Before merging -- one-time setup required

  1. Create the tap repo: create a new public repo named homebrew-lore under your zpenka account. It can be empty; GoReleaser pushes the formula on first release.

  2. Add the tap token secret: in zpenka/lore Settings > Secrets > Actions, add a secret named HOMEBREW_TAP_GITHUB_TOKEN whose value is a fine-grained PAT (or classic PAT with repo scope) that has write access to zpenka/homebrew-lore.

Cutting the first release (after merging)

git tag v0.7.0
git push origin v0.7.0

The Release workflow fires, GoReleaser builds the binaries, creates the GitHub Release, and updates the Homebrew tap. Users install with:

brew install zpenka/lore/lore

Test plan

  • go test -race ./... -- all pass
  • go vet ./... -- clean
  • gofmt -l . -- clean
  • TestVersionConstant still passes with var Version

Commit: 5d67877

Generated with Claude Code

- Add .goreleaser.yaml: builds darwin/linux × amd64/arm64, injects
  Version via ldflags, produces tar.gz archives + checksums, and pushes
  a formula to zpenka/homebrew-lore on each tagged release.
- Add .github/workflows/release.yml: triggers on v* tags, runs GoReleaser
  with GITHUB_TOKEN + HOMEBREW_TAP_GITHUB_TOKEN.
- Promote Version from const to var so ldflags can override it; bump to
  0.7.0 to match current status.
- Update README quick start with `brew install zpenka/lore/lore`.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@zpenka zpenka merged commit 66fde97 into main May 8, 2026
1 check passed
@zpenka zpenka deleted the release/goreleaser branch May 8, 2026 16:32
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