GitHub Integration
The Setup Shorebird GitHub Action allows you to integrate Shorebird into your existing GitHub Workflows.
β Shorebird CLI is installed on your machine
β You are logged into a Shorebird account.
To integrate Shorebird into your CI, use the setup-shorebird
action. The setup-shorebird
action downloads Shorebird and adds it to the system path.
In the above workflow, weβre using the setup-shorebird
action to configure Shorebird in our CI and in subsequent steps we can execute any Shorebird commands.
Most Shorebird functionality, like creating releases and patches, requires being authenticated. In order to authenticate with Shorebird in CI, you will need to generate a CI token.
You will be prompted to go through a similar OAuth Flow as when using shorebird login
, however, shorebird login:ci
will not store any credentials on your
device. Instead, it will output a base-64 encoded auth token that you will use
in your CI environment.
The output of this command should look something like:
Next, copy the generated SHOREBIRD_TOKEN
and navigate to your GitHub repository secrets via:
"Settings" -> "Secrets and variables" -> "Actions"
.
Then, click "New repository secret"
and paste your SHOREBIRD_TOKEN
:
Now we can use the SHOREBIRD_TOKEN
in our GitHub workflow to perform authenticated functions such as creating patches π
The simplest way to create a release is using the official Shorebird GitHub Actions:
For an example of a fully automated development workflow, see our Development Workflow Guide.