Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add rake gem:tag task

  • Loading branch information...
commit 40d56e98cc6be8ecd4586e0caf8e3c0c81f91968 1 parent 34273cb
@ryansobol authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.