Skip to content

Commit

Permalink
ci: push prod build to firebase app tester as well as playStore inter…
Browse files Browse the repository at this point in the history
…nal testing channel
  • Loading branch information
superus8r committed Apr 7, 2024
1 parent 8e669c1 commit 0124324
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
name: Prepare Fastlane
command: sudo bundle update
- run:
name: Distribute to Firebase AppTester
name: Distribute to Firebase AppTester Dev
command: bundle exec fastlane distDev
- store_artifacts:
path: /home/circleci/project/app/build/outputs/apk/debug/app-debug.apk
Expand All @@ -82,6 +82,9 @@ jobs:
- run:
name: Distribute to Google PlayStore Internal Testing
command: bundle exec fastlane deploy
- run:
name: Distribute to Firebase AppTester Prod
command: bundle exec fastlane distProd
- store_artifacts:
path: /home/circleci/project/app/build/outputs/bundle/release/app-release.aab
destination: fastlane-output-release
Expand Down
23 changes: 22 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ platform :android do
gradle(task: "generateKsPropFile generateGoogleServicesJson pixel2api30DebugAndroidTest testDebugUnitTest jacocoTestReport --stacktrace")
end

desc "Deploy to Firebase AppTester channel"
desc "Deploy to Firebase AppTester Dev channel"
lane :distDev do
gradle(tasks: [
"generateKsPropFile",
Expand All @@ -44,6 +44,27 @@ platform :android do
)
end

desc "Deploy to Firebase AppTester Prod channel"
lane :distProd do
gradle(tasks: [
"generateKsFile",
"generateKsPropFile",
"generateGoogleServicesJson",
"generateAppDistKey",
"clean",
])
gradle(
task: "assemble",
build_type: "Release",
)
firebase_app_distribution(
service_credentials_file: ENV['APP_DIST_SERVICE_ACCOUNT_PATH'],
app: "1:1032339097117:android:1e333da555ec74a71668f4",
groups: "testers",
release_notes: "prod",
)
end

desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do
gradle(task: "clean assembleRelease")
Expand Down

0 comments on commit 0124324

Please sign in to comment.