Skip to content

Latest commit

 

History

History
85 lines (65 loc) · 2.94 KB

RELEASE.md

File metadata and controls

85 lines (65 loc) · 2.94 KB

Release Process

This project uses an automated release workflow via GitHub Actions.

How to Release

  1. Go to Actions → Release → Run workflow
  2. Select action:
    • bump-patch (0.1.0 → 0.1.1) - bug fixes
    • bump-minor (0.1.0 → 0.2.0) - new features
    • bump-major (0.1.0 → 1.0.0) - breaking changes
  3. Click "Run workflow"
  4. Review and merge the auto-created PR
  5. Done! Merging automatically:
    • Creates git tag vX.Y.Z
    • Publishes to crates.io
    • Creates GitHub Release with release notes
    • Builds and uploads binaries for:
      • x86_64-unknown-linux-gnu (Linux x64, static glibc)
      • x86_64-unknown-linux-musl (Linux x64, static musl)
      • aarch64-unknown-linux-gnu (Linux ARM64, static glibc)
      • aarch64-unknown-linux-musl (Linux ARM64, static musl)
      • x86_64-apple-darwin (macOS x64)
      • aarch64-apple-darwin (macOS Apple Silicon)
      • x86_64-pc-windows-msvc (Windows x64)

The Homebrew formula lives in homebrew-core and is updated automatically by Homebrew's autobump bot after each release — no manual step required.

Build Binaries for Existing Release

If you need to rebuild binaries for an existing release:

  1. Go to Actions → Release → Run workflow
  2. Select action: build-binaries
  3. Enter version: e.g., 0.1.1 (without the v prefix)
  4. Click "Run workflow"

Linux binaries are built for both GNU and musl targets, and their archive names use the matching target triples. The static GNU archives preserve compatibility with existing tuicr update installations.

What Gets Updated

The release PR includes:

  • Cargo.toml - version bump
  • Cargo.lock - updated lockfile
  • CHANGELOG.md - auto-generated from commits

Commit Message Convention

For meaningful changelogs, use conventional commits:

Prefix Category Example
feat: Features feat: add export to JSON
fix: Bug Fixes fix: resolve crash on empty diff
docs: Documentation docs: update keybindings table
perf: Performance perf: optimize large file rendering
refactor: Refactor refactor: simplify state machine
test: Testing test: add integration tests
chore: Miscellaneous chore: update dependencies

Homebrew

The formula lives in homebrew-core (brew install tuicr) and is bumped automatically by Homebrew's autobump bot when a new release is published — no manual action is needed.

Required Secrets

The following secrets must be configured in GitHub repository settings:

Manual Release (if needed)

# Update version in Cargo.toml manually, then:
cargo publish --dry-run  # verify
cargo publish            # publish to crates.io
git tag v0.2.0
git push origin v0.2.0