Skip to content

Commit

Permalink
Add lane to upload Experimental to Google Play production
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello committed Apr 9, 2021
1 parent 5a800fe commit 37a7f10
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 37a7f10

Please sign in to comment.