Permalink
Browse files

prerelease task

  • Loading branch information...
1 parent c8c7962 commit 397d470ef8460a0e008a4c86750a7b3f9cc8f554 @sandro committed Jul 27, 2010
Showing with 14 additions and 0 deletions.
  1. +14 −0 Rakefile
View
@@ -46,3 +46,17 @@ rescue LoadError
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
end
end
+
+desc "tag, push gem, push to github"
+task :prerelease do
+ version = `cat VERSION`.strip
+ command = %(
+ git tag v#{version} &&
+ rake build &&
+ git push &&
+ gem push pkg/specjour-#{version}.gem &&
+ git push --tags
+ )
+ puts command
+ puts %x(#{command})
+end

0 comments on commit 397d470

Please sign in to comment.