This document explains the release process for the gotenberg gem.
The easiest way to release a new version is to use the automated release script:
bin/releaseThis script will:
- β Check that you're on the main branch
- β Verify your working directory is clean
- π Prompt you for the new version number
- π Update the version in
lib/gotenberg/version.rb - π Update the changelog with the new version and today's date
- π Commit all changes
- π·οΈ Create and push a git tag
- π¦ Build the gem and push it to RubyGems.org
If you prefer to release manually, follow these steps:
- Update
CHANGELOG.mdwith your changes - Update
lib/gotenberg/version.rbwith the target version - Commit your changes
- Create and push a git tag:
git tag -a v1.0.4 -m "Release version 1.0.4" - Push the tag:
git push origin v1.0.4 - Build the gem:
gem build gotenberg.gemspec - Push to RubyGems:
gem push gotenberg-1.0.4.gem
- You must be on the
mainbranch - Your working directory must be clean (no uncommitted changes)
- You must have write access to the repository
- You must have RubyGems credentials configured
Versions should follow semantic versioning: x.y.z
x- Major version (breaking changes)y- Minor version (new features, backward compatible)z- Patch version (bug fixes, backward compatible)