Skip to content

Commit

Permalink
Release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwynn committed Jul 5, 2013
1 parent bc26290 commit 8223f49
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
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/gem
# 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

0 comments on commit 8223f49

Please sign in to comment.