diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 529d898a2e..2ee684d177 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -26,7 +26,7 @@ platform :android do gradle(task: "test") end - desc "Deploy a new version to the Google Play" + desc "Deploy a new version to Google Play" lane :deploy do gradle( task: "clean bundleGplayRelease", @@ -38,7 +38,27 @@ platform :android do } ) upload_to_play_store( - apk: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] + # apk: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] + ) + end + + desc "Deploy a beta to Google Play" + lane :deploy_beta do + gradle( + task: "clean bundleGplayRelease", + properties: { + "android.injected.signing.store.file": keystore, + "android.injected.signing.store.password": keystore_pass, + "android.injected.signing.key.alias": key_alias, + "android.injected.signing.key.password": key_pass + } + ) + upload_to_play_store( + # apk: lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] + track: 'beta', + skip_upload_metadata = false, + skip_upload_images = true, + skip_upload_screenshots = true ) end end diff --git a/fastlane/README.md b/fastlane/README.md index 8f1119a8b0..859e85c77a 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -25,7 +25,12 @@ Runs all the tests ``` fastlane android deploy ``` -Deploy a new version to the Google Play +Deploy a new version to Google Play +### android deploy_beta +``` +fastlane android deploy_beta +``` +Deploy a beta to Google Play ----