Build configuration per workflow

Hi there! I’m looking for a way to select the build configuration based on which workflow is being executed, I looked through your FAQ but I couldn’t see anything :blush:

master = Release
release = Release
develop = Test
features = Debug


Hi @nick.briscoe,

Thanks for asking this here! :wink:

It’s actually pretty simple to do, using multiple workflows and either Workflow Env Vars or specifying the parameter directly for the step.

All you have to do is:

  1. Create a workflow for every configuration which should have different configuration(s) (master, release, develop, …)
  2. Set the right configuration for every workflow, e.g. select the develop one, and set the configuration (or any other parameter in any step) to the one you want to. Example if you use e.g. the Xcode Archive step and want to specify a configuration there:
    1. Select the related workflow
    2. Select the related step (Xcode Archive in this case)
    3. Select the related input/option (in case of Xcode Archive it’s the Configuration name option
    4. Set the value/configuration you want to
  3. And the last step is to specify which workflow to use when, using the Triggers / Trigger Map feature (related docs:

E.g. run run the “deploy” workflow for every code push on master, and run the “primary” workflow for code push on any other branch and for pull requests:

- push_branch: "master"
  workflow: deploy
- push_branch: "*"
  workflow: primary
- pull_request_target_branch: "*"
  workflow: primary


If you have any questions just let us know! :slight_smile:

1 Like