Skip to content
Browse files

Add rake gem:tag task

  • Loading branch information...
1 parent 34273cb commit 40d56e98cc6be8ecd4586e0caf8e3c0c81f91968 @ryansobol committed Feb 9, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 Rakefile
View
8 Rakefile
@@ -40,10 +40,18 @@ namespace :gem do
jeweler { |gem_file| system "gem push #{gem_file}"}
end
+ desc "Tags and pushes the current version to GitHub"
+ task :tag do
+ puts "==> Tagging and pushing to GitHub"
+ system "git tag -a v#{Rack::Bouncer::VERSION} -m 'Tag v#{Rack::Bouncer::VERSION}'"
+ system "git push --tags"
+ end
+
desc "Builds, pushes, and cleans a gem for the current project"
task :release do
Rake::Task["gem:build"].invoke
Rake::Task["gem:push"].invoke
+ Rake::Task["gem:tag"].invoke
Rake::Task["gem:clean"].invoke
end

0 comments on commit 40d56e9

Please sign in to comment.
Something went wrong with that request. Please try again.