Permalink
Browse files

[Rakefile] Improvements to gem:release.

  • Loading branch information...
1 parent 6318a0a commit 26fb824f0349e43bf8b13651e780f2bba9ca14a6 @fabiopelosin fabiopelosin committed Jul 6, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 Rakefile
View
@@ -138,6 +138,12 @@ namespace :gem do
# ENV['FROM_GEM'] = '1'
# silent_sh "rake examples:build"
+ # Ensure that the branches are up to date with the remote
+ sh "git pull"
+ sh "git checkout master"
+ sh "git pull"
+ sh "git checkout develop"
+
# Then release
sh "git commit lib/cocoapods.rb -m 'Release #{gem_version}'"
sh "git push origin develop"

0 comments on commit 26fb824

Please sign in to comment.