Skip to content

Commit

Permalink
Add release task.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Oct 23, 2010
1 parent be53ce7 commit d3ef930
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Rakefile
Expand Up @@ -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.