From 05efbde1bdabf60c9e7aca4e7a9a1f2c0d6a5e65 Mon Sep 17 00:00:00 2001 From: Jochen Pfeiffer Date: Thu, 19 Mar 2020 18:12:13 +0100 Subject: [PATCH] Fix release workflow on CircleCI (#251) --- .circleci/config.yml | 2 +- Rakefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4f26acd3..f34af1ec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -206,7 +206,7 @@ commands: type: string steps: - run-rake-task: - task: release_next_version << parameters.type >> + task: release_next_version[<< parameters.type >>] release-next-major-version: description: Create major release pull request diff --git a/Rakefile b/Rakefile index 4013f884..c1209a52 100644 --- a/Rakefile +++ b/Rakefile @@ -368,6 +368,7 @@ def xcodebuild_test(destination) end def release_next_version(type) + title "Releasing #{type} version" version = version_from_podspec new_version = increment_semver(version, type) release_version new_version @@ -504,7 +505,7 @@ def create_github_release_trigger_tag(type) tag = release_trigger_tag(type) sh "git tag -a #{tag} -m 'Initiating #{type} release'" sh "git push --set-upstream origin #{tag}" - sh "git tag -ad#{tag}" + sh "git tag -d #{tag}" end def delete_github_release_trigger_tag(type)