Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.76 KB

RELEASE.md

File metadata and controls

67 lines (48 loc) · 1.76 KB

Release

Before You Begin

Ensure your local workstation is configured to be able to Sign commits.

Local Release Preparation

Checkout latest code

$ git checkout main
$ git pull origin main

Bump version

Update version in lib/semian/version.rb. Check if there is required changes in README.md. Add line after ## [Unreleased] in CHANGELOG.md with new version.

Run Tests

Make sure all tests passed and gem could be build. Check README.md.

Create Release Commit and Tag

Commit changes and create a tag. Make sure commit and tag are signed. Extract related content from CHANGELOG.md for a tag message.

$ bundle install
$ export RELEASE_VERSION=0.x.y
$ git commit -a -S -m "Release $RELEASE_VERSION"
$ git tag -s "v$RELEASE_VERSION"

Release Tag

On your local machine again, push your commit and tag

$ git push origin main --follow-tags

Verify rubygems release

  • Shipit should kick off a build and release after new version detected.
  • Check rubygems

Github release

  • Create a new gem
    $ bundle exec rake build build:checksum
  • Create github release. Choose either hub or gh.
    • Github CLi gh_release_create :
      $ gh release create v$RELEASE_VERSION pkg/semian-$RELEASE_VERSION.gem checksums/semian-$RELEASE_VERSION.gem.sha512
      
    • Hub:
      $ hub release create -a pkg/semian-$RELEASE_VERSION.gem -a checksums/semian-$RELEASE_VERSION.gem.sha512 v$RELEASE_VERSION