[CHORE] Add job to upload Experimental to Google Play production (#3050)

This commit is contained in:
Diego Mello 2021-04-13 15:41:55 -03:00 committed by GitHub
parent 69c0ccd8a7
commit f7f13dabcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 0 deletions

View File

@ -290,6 +290,24 @@ commands:
command: bundle exec fastlane android beta official:<< parameters.official >>
working_directory: android
# EXPERIMENTAL ONLY
# No plans to do it for Official
upload-to-google-play-production:
description: "Upload to Google Play production"
steps:
- checkout
- attach_workspace:
at: android
- run:
name: Store the google service account key
command: echo "$FASTLANE_GOOGLE_SERVICE_ACCOUNT" | base64 --decode > service_account.json
working_directory: android
- run: *update-fastlane-android
- run:
name: Fastlane Play Store Upload
command: bundle exec fastlane android production
working_directory: android
upload-to-testflight:
description: "Upload to TestFlight"
parameters:
@ -382,6 +400,13 @@ jobs:
- upload-to-google-play-beta:
official: false
android-google-play-production-experimental:
<<: *defaults
docker:
- image: circleci/android:api-28-node
steps:
- upload-to-google-play-production
android-google-play-beta-official:
<<: *defaults
docker:
@ -466,6 +491,13 @@ workflows:
- android-google-play-beta-experimental:
requires:
- android-hold-google-play-beta-experimental
- android-hold-google-play-production-experimental:
type: approval
requires:
- android-build-experimental
- android-google-play-production-experimental:
requires:
- android-hold-google-play-production-experimental
# Android Official
- android-hold-build-official:

View File

@ -32,4 +32,13 @@ platform :android do
)
end
end
desc "Upload App to Play Store Production"
lane :production do |options|
upload_to_play_store(
package_name: 'chat.rocket.reactnative',
track: 'production',
aab: 'android/app/build/outputs/bundle/experimentalPlayRelease/app-experimental-play-release.aab'
)
end
end