Repository navigation
Add release builds with GoReleaser - #3
Merged
Merged
Conversation
Tagging vX.Y.Z now publishes a GitHub release with binaries for macOS, Linux and Windows (amd64/arm64) plus checksums, and updates a Homebrew cask in funkyhq/homebrew-tap once HOMEBREW_TAP_TOKEN is set. - main moves to cmd/funky, so `go install .../cmd/funky@latest` installs a `funky` binary instead of `cli`. - `funky --version` reports the release version, the module version for `go install`, or "dev". - CI runs vet and tests and a snapshot release build on every PR. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <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.
What
Makes the CLI installable by everyone:
vX.Y.Ztag runs.github/workflows/release.yml. That runs the tests, then GoReleaser builds static binaries for macOS, Linux and Windows on amd64 and arm64, and publishes them withchecksums.txtand a changelog. Archive names carry no version (funky_darwin_arm64.tar.gz), soreleases/latest/download/…URLs stay stable for an install script later. Tags with a suffix (v0.2.0-rc.1) become pre-releases.go install:mainmoves tocmd/funky, sogo install github.com/funkyhq/cli/cmd/funky@latestinstallsfunkyrather thancli.funky --version: shows the release version, the module version forgo installbuilds, ordev.ci.yml):go vet,go test -race, and agoreleaser release --snapshotbuild on every PR, so a broken release config shows up before a tag is pushed.npm (
@funkyhq/cli) follows in a separate PR, built from these release binaries.Testing
goreleaser checkandgoreleaser release --snapshot --clean(v2.19.0) locally: 6 archives and checksums; the extracted darwin/arm64 binary printsfunky version 0.0.0-SNAPSHOT-ea21a92.go vet ./...andgo test -race ./...pass.go install ./cmd/funkyproduces afunkybinary.🤖 Generated with Claude Code