Package: stemsplit CLI binary (GitHub Releases + Homebrew)
GitHub: https://github.com/StemSplit/stemsplit-cli
Publishing is fully automated via GitHub Actions using GoReleaser (release.yml). Never build or publish binaries manually from a local machine.
-
Bump the version in the code if needed (e.g.,
main.goversion constant, if any). -
Update
CHANGELOG.mdor release notes. -
Commit and push to
main:git add . git commit -m "chore: bump version to 0.2.0" git push origin main
-
Create and push a tag — this triggers the CI release:
git tag v0.2.0 git push origin v0.2.0
-
GoReleaser CI will:
- Build cross-platform binaries (macOS, Linux, Windows)
- Create a GitHub Release with attached binaries
- Generate checksums
After a new GitHub release is created, update the formula in scripts/packages/homebrew-tap/:
cd scripts/packages/homebrew-tap
# Get the sha256 of the new tarball:
curl -sL https://github.com/StemSplit/stemsplit-cli/archive/refs/tags/v0.2.0.tar.gz | sha256sum
# Edit Formula/stemsplit.rb to update `url` and `sha256`, then:
git add Formula/stemsplit.rb
git commit -m "chore: update stemsplit to v0.2.0"
git push origin main| Secret | Description |
|---|---|
GITHUB_TOKEN |
Automatically provided by GitHub Actions for GoReleaser |
cd scripts/packages/stemsplit-cli
go build ./...
go test ./...
./stemsplit --helpBuild snapshot (do NOT push tags):
goreleaser build --snapshot --clean