Sha256: b192b537b87a6b5b08407c61f5a2bd28bece384b197f0ea29b08baae9e1fe3c5

Contents?: true

Size: 789 Bytes

Versions: 1

Compression:

Stored size: 789 Bytes

Contents

#!/bin/bash

set -e

VERSION=$1

echo "Install github_changelog_generator"
gem install --user github_changelog_generator

echo "Update 'lib/reckon/version.rb'"
echo -e "module Reckon\n  VERSION=\"$VERSION\"\nend" > lib/reckon/version.rb
echo "Run `bundle install` to build updated Gemfile.lock"
bundle install
echo "3. Run changelog generator (requires $TOKEN to be your github token)"
github_changelog_generator -u cantino -p reckon -t $TOKEN --future-release $VERSION
echo "4. Commit changes"
git add CHANGELOG.md lib/reckon/version.rb Gemfile.lock
git commit -m "Release $VERSION"
echo "7. Build new gem"
gem build reckon.gemspec
echo "5. Tag release"
git tag v$VERSION
echo "Push changes and tags"
echo git push && git push --tags
echo "Push new gem"
echo gem push reckon-$VERSION.gem

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reckon-0.7.0 bin/build-new-version.sh