release: wire GoReleaser + Homebrew tap for v0.7.0#35
Merged
Conversation
- 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>
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
zpenka/homebrew-loreon each tagged releasev*tag pushes; runs GoReleaser v2 withGITHUB_TOKEN+HOMEBREW_TAP_GITHUB_TOKENVersionpromoted fromconsttovar(so GoReleaser ldflags can override it at link time); bumped to0.7.0brew install zpenka/lore/loreadded to quick startBefore merging -- one-time setup required
Create the tap repo: create a new public repo named
homebrew-loreunder yourzpenkaaccount. It can be empty; GoReleaser pushes the formula on first release.Add the tap token secret: in
zpenka/loreSettings > Secrets > Actions, add a secret namedHOMEBREW_TAP_GITHUB_TOKENwhose value is a fine-grained PAT (or classic PAT withreposcope) that has write access tozpenka/homebrew-lore.Cutting the first release (after merging)
The Release workflow fires, GoReleaser builds the binaries, creates the GitHub Release, and updates the Homebrew tap. Users install with:
Test plan
go test -race ./...-- all passgo vet ./...-- cleangofmt -l .-- cleanTestVersionConstantstill passes withvar VersionCommit: 5d67877
Generated with Claude Code