Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 1.2 KB

File metadata and controls

54 lines (41 loc) · 1.2 KB

Release Process

1. Bump version

# Edit Cargo.toml version
vim Cargo.toml

git add Cargo.toml Cargo.lock
git commit -m "Bump version to X.Y.Z"
git push origin main

2. Tag and push

git tag vX.Y.Z
git push origin vX.Y.Z

This triggers the Release workflow which builds for:

  • codey-darwin-arm64 (macOS ARM)
  • codey-linux-x86_64 (Linux x86)
  • codey-linux-arm64 (Linux ARM)

3. Update Homebrew tap

Once the release workflow completes, get SHA256 hashes:

VERSION=X.Y.Z
curl -sL https://github.com/tcdent/codey/releases/download/v$VERSION/codey-darwin-arm64.tar.gz | shasum -a 256
curl -sL https://github.com/tcdent/codey/releases/download/v$VERSION/codey-linux-x86_64.tar.gz | shasum -a 256
curl -sL https://github.com/tcdent/codey/releases/download/v$VERSION/codey-linux-arm64.tar.gz | shasum -a 256

Update ~/Work/tap/Formula/codey.rb:

  • version "X.Y.Z"
  • SHA256 hashes for each platform
cd ~/Work/tap
git add -A
git commit -m "Update codey to vX.Y.Z"
git push

Version scheme

0.1.0-alpha.1   # Early development
0.1.0-rc.1      # Release candidate
0.1.0           # Stable release