Chore: Improve QA workflow (#3285)

This commit is contained in:
Diego Mello 2021-07-19 18:04:45 -03:00 committed by GitHub
parent d1f35bb799
commit 66d986e2b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 21 deletions

View File

@ -290,6 +290,23 @@ commands:
command: bundle exec fastlane android beta official:<< parameters.official >> command: bundle exec fastlane android beta official:<< parameters.official >>
working_directory: android working_directory: android
# EXPERIMENTAL ONLY
upload-to-internal-app-sharing:
description: "Upload to Internal App Sharing"
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 internal_app_sharing
working_directory: android
# EXPERIMENTAL ONLY # EXPERIMENTAL ONLY
# No plans to do it for Official # No plans to do it for Official
upload-to-google-play-production: upload-to-google-play-production:
@ -391,6 +408,14 @@ jobs:
steps: steps:
- android-build - android-build
android-internal-app-sharing-experimental:
<<: *defaults
docker:
- image: circleci/android:api-28-node
steps:
- upload-to-internal-app-sharing
android-google-play-beta-experimental: android-google-play-beta-experimental:
<<: *defaults <<: *defaults
docker: docker:
@ -452,13 +477,9 @@ workflows:
- ios-build-experimental: - ios-build-experimental:
requires: requires:
- ios-hold-build-experimental - ios-hold-build-experimental
- ios-hold-testflight-experimental:
type: approval
requires:
- ios-build-experimental
- ios-testflight-experimental: - ios-testflight-experimental:
requires: requires:
- ios-hold-testflight-experimental - ios-build-experimental
# iOS Official # iOS Official
- ios-hold-build-official: - ios-hold-build-official:
@ -484,6 +505,9 @@ workflows:
- android-build-experimental: - android-build-experimental:
requires: requires:
- android-hold-build-experimental - android-hold-build-experimental
- android-internal-app-sharing-experimental:
requires:
- android-build-experimental
- android-hold-google-play-beta-experimental: - android-hold-google-play-beta-experimental:
type: approval type: approval
requires: requires:

View File

@ -33,6 +33,14 @@ platform :android do
end end
end end
desc "Upload App to Internal App Sharing"
lane :internal_app_sharing do
upload_to_play_store_internal_app_sharing(
package_name: 'chat.rocket.reactnative',
aab: 'android/app/build/outputs/bundle/experimentalPlayRelease/app-experimental-play-release.aab'
)
end
desc "Upload App to Play Store Production" desc "Upload App to Play Store Production"
lane :production do |options| lane :production do |options|
upload_to_play_store( upload_to_play_store(

View File

@ -12,33 +12,28 @@ Install _fastlane_ using
``` ```
[sudo] gem install fastlane -NV [sudo] gem install fastlane -NV
``` ```
or alternatively using `brew cask install fastlane` or alternatively using `brew install fastlane`
# Available Actions # Available Actions
## Android ## Android
### android playBuild ### android beta
``` ```
fastlane android playBuild fastlane android beta
``` ```
Play build for development Upload App to Play Store Internal
### android fossRelease ### android internal_app_sharing
``` ```
fastlane android fossRelease fastlane android internal_app_sharing
``` ```
Foss build for release Upload App to Internal App Sharing
### android playRelease ### android production
``` ```
fastlane android playRelease fastlane android production
``` ```
Play build for release Upload App to Play Store Production
### android playAlpha
```
fastlane android playAlpha
```
Upload App to Play store
---- ----
This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run. This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools). More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools). The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).