Skip to content

Commit

Permalink
propose new release process
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Cheung committed Oct 24, 2014
1 parent 0b73377 commit bee19ae
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rdoc
Expand Up @@ -37,6 +37,14 @@ sources.

Simply require either 'net-ldap' or 'net/ldap'.

== Release

This section is for gem maintainers to cut a new version of the gem.

* Update lib/html/pipeline/version.rb to next version number X.X.X following {semver}(http://semver.org/).
* Update CHANGELOG.md. Get latest changes with `git log --oneline vLAST_RELEASE..HEAD | grep Merge`
* On the master branch, run `script/release`

:include: Contributors.rdoc

:include: License.rdoc
7 changes: 7 additions & 0 deletions script/package
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Usage: script/package
# Updates the gemspec and builds a new gem in the pkg directory.

mkdir -p pkg
gem build *.gemspec
mv *.gem pkg
16 changes: 16 additions & 0 deletions script/release
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Usage: script/release
# Build the package, tag a commit, push it to origin, and then release the
# package publicly.

set -e

version="$(script/package | grep Version: | awk '{print $2}')"
[ -n "$version" ] || exit 1

echo $version
git commit --allow-empty -a -m "Release $version"
git tag "v$version"
git push origin
git push origin "v$version"
gem push pkg/*-${version}.gem

0 comments on commit bee19ae

Please sign in to comment.