Skip to content

Commit d7032b8

Browse files
authored
Distribute builds to Firebase on push events to main (#3388)
1 parent 7d03b62 commit d7032b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
--name google-services.json --file ${{ github.workspace }}/app/src/standardBeta/google-services.json --output none
139139
140140
- name: Download Firebase credentials
141-
if: ${{ matrix.variant == 'prod' && inputs.distribute-to-firebase }}
141+
if: ${{ matrix.variant == 'prod' && (inputs.distribute-to-firebase || github.event_name == 'push') }}
142142
env:
143143
ACCOUNT_NAME: bitwardenci
144144
CONTAINER_NAME: mobile
@@ -346,19 +346,19 @@ jobs:
346346
if-no-files-found: error
347347

348348
- name: Install Firebase app distribution plugin
349-
if: ${{ matrix.variant == 'prod' && github.ref_name == 'main' && inputs.distribute-to-firebase }}
349+
if: ${{ matrix.variant == 'prod' && github.ref_name == 'main' && (inputs.distribute-to-firebase || github.event_name == 'push') }}
350350
run: bundle exec fastlane add_plugin firebase_app_distribution
351351

352352
- name: Publish release artifacts to Firebase
353-
if: ${{ matrix.variant == 'prod' && matrix.artifact == 'apk' && github.ref_name == 'main' && inputs.distribute-to-firebase }}
353+
if: ${{ matrix.variant == 'prod' && matrix.artifact == 'apk' && github.ref_name == 'main' && (inputs.distribute-to-firebase || github.event_name == 'push') }}
354354
env:
355355
APP_PLAY_FIREBASE_CREDS_PATH: ${{ github.workspace }}/secrets/app_play_prod_firebase-creds.json
356356
run: |
357357
bundle exec fastlane distributeReleasePlayStoreToFirebase \
358358
service_credentials_file:${{ env.APP_PLAY_FIREBASE_CREDS_PATH }}
359359
360360
- name: Publish beta artifacts to Firebase
361-
if: ${{ (matrix.variant == 'prod' && matrix.artifact == 'apk') && github.ref_name == 'main' && inputs.distribute-to-firebase }}
361+
if: ${{ (matrix.variant == 'prod' && matrix.artifact == 'apk') && github.ref_name == 'main' && (inputs.distribute-to-firebase || github.event_name == 'push') }}
362362
env:
363363
APP_PLAY_FIREBASE_CREDS_PATH: ${{ github.workspace }}/secrets/app_play_prod_firebase-creds.json
364364
run: |
@@ -410,7 +410,7 @@ jobs:
410410
--name app_beta_fdroid-keystore.jks --file ${{ github.workspace }}/keystores/app_beta_fdroid-keystore.jks --output none
411411
412412
- name: Download Firebase credentials
413-
if: ${{ inputs.distribute-to-firebase }}
413+
if: ${{ inputs.distribute-to-firebase || github.event_name == 'push' }}
414414
env:
415415
ACCOUNT_NAME: bitwardenci
416416
CONTAINER_NAME: mobile

0 commit comments

Comments
 (0)