GitHub Action
Fastlane Action
This action executes the lane that is passed.
- The parameter
bundle-install-path
has been removed from this action. This parameter was mostly intended to enable caching ofbundle install
results. For that reason and also, because this action no longer installs theGemfile
dependencies, anyone using this action should set thebundler-cache
parameter of theruby/setup-ruby
step totrue
(see Example Usage). - If you are using the
subdirectory
of this action, you should also set theworking-directory
ofruby/setup-ruby
, so the action is knows where to look for theGemfile
.
Required The lane that should be executed.
Optional The options that should be passed as arguments to the lane. The options should be serialized as a JSON object.
Optional The relative path from the project root to the subdirectory where the fastlane folder is located.
Optional If set to true, adds the verbose option to the fastlane command for extended log output.
Optional If used, adds the env option to the fastlane command to use fastlane env files (see Fastlane environment variables).
Basic usage for executing a lane in the root directory without arguments.
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- uses: maierj/[email protected]
with:
lane: 'beta'
Usage for executing a lane in the root directory with arguments.
For a lane called beta
to be called like
fastlane beta option1:value1 option2:value2
the workflow step should look like
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- uses: maierj/[email protected]
with:
lane: 'beta'
options: '{ "option1": "value1", "option2": "value2" }'
Usage for executing a lane in a context where the fastlane folder is in a subdirectory called ios
.
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
working-directory: 'ios'
- uses: maierj/[email protected]
with:
lane: 'beta'
subdirectory: 'ios'
Use the env option for fastlane env files:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- uses: maierj/[email protected]
with:
lane: beta
env: staging
The action generally supports
ubuntu-18.04
ubuntu-20.04
ubuntu-22.04
macOS-10.15
macOS-11
macOS-12
windows-2019
windows-2022
There may be further limitations depending on what your lanes are doing, but that's outside the scope of this action.