Add Fastlane action to upload Google Play metadata

Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
Chad 2018-09-21 11:21:36 +02:00 committed by Goran Jovic
parent e08b496c38
commit f567b59243
No known key found for this signature in database
GPG Key ID: D429D1A9B2EB8A8E
1 changed files with 14 additions and 2 deletions

View File

@ -179,9 +179,10 @@ platform :android do
default_payloads: []
)
end
desc "Deploy a new alpha (public) build to Google Play"
desc "expects GOOGLE_PLAY_JSON_KEY environment variable"
lane :release do
desc "Deploy a new alpha (public) build to Google Play"
desc "expects GOOGLE_PLAY_JSON_KEY environment variable"
upload_to_play_store(
track: "alpha",
apk: "android/app/build/outputs/apk/release/app-release.apk",
@ -194,6 +195,17 @@ platform :android do
)
end
desc "Upload metadata to Google Play."
desc "Metadata is always updated when builds are uploaded,"
desc "but this action can update metadata without uploading a build."
desc "expects GOOGLE_PLAY_JSON_KEY environment variable"
lane :upload_metadata do
upload_to_play_store(
skip_upload_apk: true,
json_key_data: ENV["GOOGLE_PLAY_JSON_KEY"]
)
end
desc "`fastlane android upload_diawi` - upload .apk to diawi"
desc "also notifies in a GitHub comments and in Slack #jenkins channel"
desc "expects to have an .apk prepared: `android/app/build/outputs/apk/release/app-release.apk`"