summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2015-04-03 12:14:57 +0300
committerSaku Ytti <saku@ytti.fi>2015-04-03 12:14:57 +0300
commit86516432c330801825a9204a7b0bf640e91d7f1f (patch)
tree91f6e2edd23a17619794c95f2a346444f5e9eb55 /Rakefile
parentb9150304aee5eb0fa36ab8565abc95dce0294004 (diff)
add tagging to rake push
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 0bd4ffa..3d85377 100644
--- a/Rakefile
+++ b/Rakefile
@@ -40,7 +40,12 @@ task :clean do
FileUtils.rm_rf 'gems'
end
+desc 'Tag the release'
+task :tag do
+ system "git tag #{gemspec.version}"
+end
+
desc 'Push to rubygems'
-task :push do
+task :push => :tag do
system "gem push gems/#{file}"
end