Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding rake changeling:push

  • Loading branch information...
commit 5948491660e92d8a7c6116d67c44b1cb6d686f58 1 parent fd02920
@qrush qrush authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 Rakefile
View
8 Rakefile
@@ -77,7 +77,7 @@ EOF
exec ["#{ENV["EDITOR"]} #{file}",
"git commit -aqm '#{message}'",
"git tag -a -m '#{message}' v#{version}",
- "echo '\n\n\033[32mMarked v#{version} /' `git show-ref -s refs/heads/master` 'for release.\033[0m\n\n'"].join(' && ')
+ "echo '\n\n\033[32mMarked v#{version} /' `git show-ref -s refs/heads/master` 'for release. Run: rake changeling:push\033[0m\n\n'"].join(' && ')
end
desc "Bump by a minor version (1.2.3 => 1.3.0)"
@@ -91,6 +91,12 @@ EOF
Rake::Task['changeling:bump'].invoke(t.name)
Rake::Task['changeling:change'].invoke
end
+
+ desc "Push the latest version and tags"
+ task :push do |t|
+ system("git push origin master")
+ system("git push origin $(git tag | tail -1)")
+ end
end
begin
Please sign in to comment.
Something went wrong with that request. Please try again.