summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-05-07 12:49:06 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-05-07 12:50:02 -0700
commitc98a60c3c1c02e2aa8bdaa6883520b359ad98e5c (patch)
tree9e15eb2cede2800d2cdf68a560ab646fc9ee9dcc
parent00f67aeec607a3b555912e9a9ed30b087ff5cbc8 (diff)
downloadlibyajl2-gem-c98a60c3c1c02e2aa8bdaa6883520b359ad98e5c.tar.gz
add rake ship command
-rw-r--r--Rakefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 8cb2e2c..11c2d71 100644
--- a/Rakefile
+++ b/Rakefile
@@ -41,6 +41,16 @@ task :clean do
sh "git clean -fdx"
end
+# FIXME: need a rake task to update the git submodule and need to do that before shipping
+desc "Build it and ship it"
+task :ship => [:clean, :gem] do
+ sh("git tag #{Libyajl2::VERSION}")
+ sh("git push --tags")
+ Dir[File.expand_path("../pkg/*.gem", __FILE__)].reverse.each do |built_gem|
+ sh("gem push #{built_gem}")
+ end
+end
+
#
# test tasks
#