fastlane Integration
deploygate action will be your help when uploading your app if you use fastlane as a build tool.
How to get stared
fastlane deploygate
will be available if you put the code below into Fastlane file.
deploygate(
api_token: 'api token', # DEPLOYGATE_API_TOKEN environment variable will be used unless passed.
user: 'username or group name', # DEPLOYGATE_USER environment variable will be used unless passed.
message: "fastlane build #{lane_context[SharedValues::BUILD_NUMBER]}",
)
Configure deploygate action
Several options are available through arguments and/or environment variables.
Argument | Environment variable | Description |
---|---|---|
api_token | DEPLOYGATE_API_TOKEN | API Key of user account or organization |
user | DEPLOYGATE_USER | name of user account or organization who is an app owner |
ipa | DEPLOYGATE_IPA_PATH | Filepath to an .ipa file to be uploaded. This value is optional if you use gym and xcodebuild action. |
apk | DEPLOYGATE_APK_PATH | Filepath to an .apk file to be uploaded. This value is optional if you use gradle action. |
message | DEPLOYGATE_MESSAGE | A description of the build |
distribution_key | DEPLOYGATE_DISTRIBUTION_KEY | A hash of a distribution to be updated. You can get this value from the distribution URL. e.g. a hash of https://deploygate.com/distributions/xyz is xyz. |
distribution_name | DEPLOYGATE_DISTRIBUTION_NAME | A name of a distribution to be updated. You can get this value from the distribution URL. If no associated distribtion exist, DeployGate will create a new distribution. |
release_note | DEPLOYGATE_RELEASE_NOTE | A description for a distribution to be updated. |
disable_notify | DEPLOYGATE_DISABLE_NOTIFY | (Only for iOS) If true, e-mail notifications will be disabled for this upload. false by default. |
These arguments are based on App Upload API. Please refer to API document // TODO for details.
Please track the latest definition and type information on deploygate action definitions.