Rakefile in dtachr-0.0.2 vs Rakefile in dtachr-0.0.3
- old
+ new
@@ -85,19 +85,20 @@
#
# Packaging tasks
#
#############################################################################
-desc "Create tag v#{version} and build and push #{gem_file} to Rubygems"
-task :release => :build do
+desc "Create tag v#{version}"
+task :release do
unless `git branch` =~ /^\* master$/
puts "You must be on the master branch to release!"
exit!
end
- sh "git commit --allow-empty -a -m 'Release #{version}'"
sh "git tag v#{version}"
- sh "git push origin master"
- sh "git push origin v#{version}"
+end
+
+desc "Push #{gem_file} to Rubygems"
+task :publish do
sh "gem push pkg/#{name}-#{version}.gem"
end
desc "Build #{gem_file} into the pkg directory"
task :build => :gemspec do