- Push access to
turadg/git-whereandturadg/homebrew-tap CARGO_REGISTRY_TOKENsecret configured in the repo (for crates.io publish)
Update the version in Cargo.toml:
# Edit Cargo.toml version field
cargo check # ensures Cargo.lock updatesCommit and push to main:
git add Cargo.toml Cargo.lock
git commit -m "release: v0.X.0"
git pushgit tag v0.X.0
git push origin v0.X.0This triggers the release workflow, which:
- Builds binaries for all targets (x86_64/aarch64 × linux/macOS)
- Creates a GitHub release with the tarballs
- Publishes to crates.io
Check progress at https://github.com/turadg/git-where/actions
Once the GitHub release is published, update the formula in turadg/homebrew-tap.
Download the macOS tarballs and compute their sha256 hashes:
VERSION=0.X.0
curl -sL "https://github.com/turadg/git-where/releases/download/v${VERSION}/git-where-aarch64-apple-darwin.tar.gz" | shasum -a 256
curl -sL "https://github.com/turadg/git-where/releases/download/v${VERSION}/git-where-x86_64-apple-darwin.tar.gz" | shasum -a 256Edit Formula/git-where.rb in the turadg/homebrew-tap repo:
- Update
versionto the new version - Replace both
sha256values with the new hashes
Commit and push:
git commit -am "git-where v0.X.0"
git pushbrew update
brew upgrade git-where
git where help