diff --git a/.circleci/config.yml b/.circleci/config.yml index 3e3a66b8..182e6433 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 1ac6d1fa..a1c5bd70 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