Basics of bitrise.yml
GitHub

Basics of bitrise.yml

A bare minimal bitrise.yml is as simple as:

format_version: 5

This configuration is valid, everything else is optional, but does not include anything to execute, there’s nothing to run.

A minimal configuration which you can bitrise run:

format_version: 5
workflows:
  test:

This configuration can be executed with bitrise run test, and the bitrise CLI won’t give you any errors, but of course there’s still nothing declared to do.

Let’s continue with our example from the previous guide, which executes a single Script step when you run it with bitrise run test, and talk about what’s what in the configuration:

format_version: 5
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
app:
  envs:
  - MY_NAME: My Name
workflows:
  test:
    steps:
    - script@1.1.5:
        inputs:
        - content: echo "Hello ${MY_NAME}!"

A quick walk through of this sample configuration:

Read on to learn more about how you can use multiple workflows, define multiple steps to execute for a given workflow and for more advanced concepts. You’ll be able to define your perfect automation configuration in no time!