Permalink
Browse files

Add a task to commit the changes

  • Loading branch information...
carllerche committed Nov 17, 2010
1 parent b3b6c71 commit f9bd6d8e7e0b84f7bd32fc86122e980eb756ac61
Showing with 13 additions and 0 deletions.
  1. +13 −0 tasks/release.rb
View
@@ -73,9 +73,22 @@
end
end
+ task :commit do
+ File.open('dist/commit_message.txt', 'w') do |f|
+ f.puts "# Preparing for #{version} release\n"
+ f.puts
+ f.puts "# UNCOMMENT THE LINE ABOVE TO APPROVE THIS COMMIT"
+ end
+
+ sh "git add . && git commit --verbose --template=dist/commit_message.txt"
+ rm_f "dist/commit_message.txt"
+ end
+
task :tag do
sh "git tag #{tag}"
end
+
+ task :full => %w(ensure_clean_state all:build commit)
end
namespace :all do

0 comments on commit f9bd6d8

Please sign in to comment.