Skip to content

Commit 0124324

Browse files
committed
ci: push prod build to firebase app tester as well as playStore internal testing channel
1 parent 8e669c1 commit 0124324

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.circleci/config.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
name: Prepare Fastlane
6565
command: sudo bundle update
6666
- run:
67-
name: Distribute to Firebase AppTester
67+
name: Distribute to Firebase AppTester Dev
6868
command: bundle exec fastlane distDev
6969
- store_artifacts:
7070
path: /home/circleci/project/app/build/outputs/apk/debug/app-debug.apk
@@ -82,6 +82,9 @@ jobs:
8282
- run:
8383
name: Distribute to Google PlayStore Internal Testing
8484
command: bundle exec fastlane deploy
85+
- run:
86+
name: Distribute to Firebase AppTester Prod
87+
command: bundle exec fastlane distProd
8588
- store_artifacts:
8689
path: /home/circleci/project/app/build/outputs/bundle/release/app-release.aab
8790
destination: fastlane-output-release

fastlane/Fastfile

+22-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ platform :android do
2727
gradle(task: "generateKsPropFile generateGoogleServicesJson pixel2api30DebugAndroidTest testDebugUnitTest jacocoTestReport --stacktrace")
2828
end
2929

30-
desc "Deploy to Firebase AppTester channel"
30+
desc "Deploy to Firebase AppTester Dev channel"
3131
lane :distDev do
3232
gradle(tasks: [
3333
"generateKsPropFile",
@@ -44,6 +44,27 @@ platform :android do
4444
)
4545
end
4646

47+
desc "Deploy to Firebase AppTester Prod channel"
48+
lane :distProd do
49+
gradle(tasks: [
50+
"generateKsFile",
51+
"generateKsPropFile",
52+
"generateGoogleServicesJson",
53+
"generateAppDistKey",
54+
"clean",
55+
])
56+
gradle(
57+
task: "assemble",
58+
build_type: "Release",
59+
)
60+
firebase_app_distribution(
61+
service_credentials_file: ENV['APP_DIST_SERVICE_ACCOUNT_PATH'],
62+
app: "1:1032339097117:android:1e333da555ec74a71668f4",
63+
groups: "testers",
64+
release_notes: "prod",
65+
)
66+
end
67+
4768
desc "Submit a new Beta Build to Crashlytics Beta"
4869
lane :beta do
4970
gradle(task: "clean assembleRelease")

0 commit comments

Comments
 (0)