Permalink
Browse files

Add a script for publishing the gem

  • Loading branch information...
1 parent 6bebd22 commit 2ce85417af11acfce0dc430ffbf3507c2546fcae @emk committed Feb 18, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 script/publish
View
@@ -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.