Sha256: d7a18d95748e2f0bc75b056ddea182b89769a1bd3fd2f5b9126cbe9eddb73cdb

Contents?: true

Size: 782 Bytes

Versions: 3

Compression:

Stored size: 782 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 "Run changelog generator (requires $TOKEN to be your github token)"
github_changelog_generator -u cantino -p reckon -t $TOKEN --future-release v$VERSION
echo "Commit changes"
git add CHANGELOG.md lib/reckon/version.rb Gemfile.lock
git commit -m "Release $VERSION"
echo "Tag release"
git tag v$VERSION
echo "Build new gem"
gem build reckon.gemspec
echo "Push changes and tags"
echo "git push && git push --tags"
echo "Push new gem"
echo "gem push reckon-$VERSION.gem"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reckon-0.9.0 bin/build-new-version.sh
reckon-0.8.1 bin/build-new-version.sh
reckon-0.7.1 bin/build-new-version.sh