Skip to content

publishing step condition #2995

Closed Answered by dam-ease
CPRmichel asked this question in Q&A
Feb 25, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Thanks for the clarification!
Currently, the publishing block doesn't support when conditions directly, so the script will be the most straightforward way to achieve this with the same workflow and YAML file. If the option of using different YAML files on different branches will work for you i.e., removing the publish section from other branches aside from the master branch since Codemagic uses the codemagic.yaml from the branch where the build is triggered. So for your use case, you can keep a codemagic.yaml in your master branch that includes the publishing block, and in your feature or development branches, you can either remove the publishing block or adjust the workflow as needed to …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@CPRmichel
Comment options

@dam-ease
Comment options

Answer selected by dam-ease
@CPRmichel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants