Triggering builds with code push
GitHub

Triggering builds with code push

You can set up triggers so that every time code is pushed to the specified branch of your repository, a build is automatically triggered on Bitrise.

Note that this requires an incoming webhook set up with the hosting service of your repository. Read more in the Webhooks section.

By default, every new app you add will have a trigger that triggers a build every time code is pushed to any branch of your repository.

  1. Open your app on bitrise.io.
  2. Open the Workflow Editor.
  3. Select the Triggers tab.
  4. Select the PUSH option.

    Push trigger

  5. In the existing trigger, click the Push branch option. If you have an existing trigger set up already, click the + ADD TRIGGER option to set up a new one.
  6. Type in the name of the branch (for example, master). Make sure there are no spelling errors, otherwise the trigger won’t work.
  7. Select the workflow you wish to trigger (for example, primary).
  8. Click Save in the top right corner.

You’re done! From now on, if code gets pushed to the selected branch of your app’s repository, Bitrise will trigger a build with the selected workflow!