Skip to content

Commit

Permalink
prerelease task
Browse files Browse the repository at this point in the history
  • Loading branch information
sandro committed Jul 27, 2010
1 parent c8c7962 commit 397d470
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Rakefile
Expand Up @@ -46,3 +46,17 @@ rescue LoadError
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard" abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
end end
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.