Skip to content

Commit

Permalink
Update release task
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Sep 23, 2013
1 parent 25ab7fb commit 361ec6e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,17 @@ task :clean_all => :clean do
end
end

# Run bundle exec rake release with mri and jruby.
task :release => :build do
system "git tag -a v#{BSON::VERSION} -m 'Tagging release: #{BSON::VERSION}'"
system "git push --tags"
system "gem push bson-#{BSON::VERSION}.gem"
system "rm bson-#{BSON::VERSION}.gem"
if jruby?
system "gem push bson-#{BSON::VERSION}-java.gem"
system "rm bson-#{BSON::VERSION}-java.gem"
else
system "gem push bson-#{BSON::VERSION}.gem"
system "rm bson-#{BSON::VERSION}.gem"
end
end

namespace :benchmark do
Expand Down

0 comments on commit 361ec6e

Please sign in to comment.