From f567b592435199752f4bf2b21993f8a3c7a82c98 Mon Sep 17 00:00:00 2001 From: Chad Date: Fri, 21 Sep 2018 11:21:36 +0200 Subject: [PATCH] Add Fastlane action to upload Google Play metadata Signed-off-by: Goran Jovic --- fastlane/Fastfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 6daafb7715..076227b55f 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -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`"