Skip to content

Commit

Permalink
Add a script for publishing the gem
Browse files Browse the repository at this point in the history
  • Loading branch information
emk committed Feb 18, 2011
1 parent 6bebd22 commit 2ce8541
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions script/publish
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
# Release a new version of this gem.
if ! git diff-index --quiet HEAD; then
echo "ERROR: You haven't checked in all your changes!" 1>&2
exit 1
fi

VERSION="`cat VERSION`"

git tag "v$VERSION"
gem build .gemspec
gem push rdf-agraph-"`cat VERSION`".gem
git push
git push --tags

0 comments on commit 2ce8541

Please sign in to comment.