From f7f13dabcca07df1f3faad245530ed423416f95d Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Tue, 13 Apr 2021 15:41:55 -0300 Subject: [PATCH] [CHORE] Add job to upload Experimental to Google Play production (#3050) --- .circleci/config.yml | 32 ++++++++++++++++++++++++++++++++ android/fastlane/Fastfile | 9 +++++++++ 2 files changed, 41 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3e3a66b87..182e64339 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index 1ac6d1fa7..a1c5bd70c 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -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