Update Fastfile

Change-Id: I8c3ff096bdee642dd8cd20dca47fef98694930ff
This commit is contained in:
SpiritCroc 2021-08-28 10:12:56 +02:00
parent 2c8b766aa1
commit f9f06364fc
2 changed files with 28 additions and 3 deletions

View file

@ -26,7 +26,7 @@ platform :android do
gradle(task: "test") gradle(task: "test")
end end
desc "Deploy a new version to the Google Play" desc "Deploy a new version to Google Play"
lane :deploy do lane :deploy do
gradle( gradle(
task: "clean bundleGplayRelease", task: "clean bundleGplayRelease",
@ -38,7 +38,27 @@ platform :android do
} }
) )
upload_to_play_store( 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
end end

View file

@ -25,7 +25,12 @@ Runs all the tests
``` ```
fastlane android deploy 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
---- ----