Permalink
Browse files

Add release task.

  • Loading branch information...
rkh committed Oct 23, 2010
1 parent be53ce7 commit d3ef930115c491a9293ef70f527b0f42cb18b4bc
Showing with 12 additions and 0 deletions.
  1. +12 −0 Rakefile
View
@@ -124,4 +124,16 @@ if defined?(Gem)
File.open(f.name, 'w') { |io| io.write(spec) }
puts "updated #{f.name}"
end
+
+ task 'release' => package('.gem') do
+ sh <<-SH
+ gem install #{package('.gem')} --local &&
+ gem push #{package('.gem')} &&
+ git add sinatra.gemspec &&
+ git commit --allow-empty -m 'Release #{source_version}' &&
+ git tag -s #{source_version} -m 'Release #{source_version}' &&
+ git push && (git push sinatra || true) &&
+ git push --tags && (git push sinatra --tags || true)
+ SH
+ end
end

0 comments on commit d3ef930

Please sign in to comment.