This project is a fastlane plugin. To get started with fastlane-plugin-codemagic
, add it to your project by running:
fastlane add_plugin codemagic
Fastlane plugin to trigger a Codemagic build with some options
Note to author: Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
Option | Description | Type | Requirement | Environment Variable |
---|---|---|---|---|
auth_token |
Codemagic API access token is available via UI in User settings > Integrations > Codemagic API > Show | String | Required | CODEMAGIC_AUTH_TOKEN |
app_id |
Codemagic application identifier. | String | Required | CODEMAGIC_APP_ID |
workflow_id |
Codemagic workflow identifier as specified in YAML file. | String | Required | CODEMAGIC_WORKFLOW_ID |
branch |
Git branch name | String | Required | CODEMAGIC_BRANCH |
download |
Artefacts downloading options | Object | Optional | none |
environment |
Codemagic specify environment variables and software versions to override values defined in workflow settings. | Object | Optional | none |
If an error is return by the codemagic.io API, the plugin will throw an exception.
codemagic(
workflow_id: "YOUR_WORKFLOW_ID",
app_id: "YOUR_APP_ID",
branch: "YOUR_BRANCH",
auth_token: "YOUR_AUTH_TOKEN",
download: {
artefacts: ["ipa"],
build_path: "./build/"
},
environment: {
variables: {
"ENV": "production",
"YET_ANOTHER_ENVIRONMENT_VARIABLE" => "123456"
},
softwareVersions: {
flutter: stable
xcode: latest
cocoapods: default
}
}
)
Note to author: Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
To run both the tests, and code style validation, run
rake
To automatically fix many of the styling issues, use
rubocop -a
For any other issues and feedback about this plugin, please submit it to this repository.
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
For more information about how the fastlane
plugin system works, check out the Plugins documentation.
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.