Skip to content

Commit

Permalink
Improve deployment (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjochen committed Mar 4, 2020
1 parent d8d7aae commit 0d3e7ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ begin

desc 'Release version'
task :release_version, :version do |task, args|
ensure_clean_git_status
checkout_and_pull_master
ensure_clean_git_status
update_version_in_podspec args.version
update_version_in_example_project args.version
Expand Down Expand Up @@ -312,6 +314,12 @@ def ensure_clean_git_status
end
end

def checkout_and_pull_master
title "Checkout and pull master"
sh "git checkout master"
sh "git pull"
end

def update_version_in_example_project(version)
title "Updating version in example project"
check_parameter(version)
Expand Down

0 comments on commit 0d3e7ad

Please sign in to comment.