Release Publishing
1. Publish to Homebrew (GitHub Tap)
We use an automated script to handle the GitHub Release and Homebrew Formula update.
Prerequisites
ghCLI installed and authenticated (gh auth login).- Clean working directory (commit all changes).
Run Release Script
./scripts/release.sh <version>
# Example: ./scripts/release.sh 0.3.2
This script will:
- Create and push Git Tag
v<version>. - Create GitHub Release.
- Update
Formula/commitgpt.rbwith new URL and SHA256. - Auto-push the updated Formula.
2. Publish to RubyGems
Publish the gem to the official RubyGems registry.
Build
gem build commitgpt.gemspec
Push
gem push commitgpt-<version>.gem
(You must be logged in via gem signin or have credentials configured)
Source: ZPVIP/commitgpt — distributed by TomeVault.