Skip to content

Commit

Permalink
Fix release workflow on CircleCI (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjochen committed Mar 19, 2020
1 parent d8f986c commit 05efbde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 05efbde

Please sign in to comment.