Skip to content

[Proposal] New release process #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 31, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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