From 0d3e7ad705619fdb1706138197f3a6441cd8f46e Mon Sep 17 00:00:00 2001 From: Jochen Pfeiffer Date: Wed, 4 Mar 2020 22:27:01 +0100 Subject: [PATCH] Improve deployment (#241) --- Rakefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Rakefile b/Rakefile index 5c0e65ec..85fcc1b5 100644 --- a/Rakefile +++ b/Rakefile @@ -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 @@ -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)