-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduce
Expected resultsIt should be possible to set a condition for publishing the app. Actual resultsi get errors when setting a condition to the publishing step Build id (optional)No response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @CPRmichel,
|
Beta Was this translation helpful? Give feedback.
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 …