mirror of
https://github.com/bitwarden/android.git
synced 2025-12-11 13:57:03 -06:00
Distribute builds to Firebase on push events to main (#3388)
This commit is contained in:
parent
7d03b62dd7
commit
d7032b8475
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -138,7 +138,7 @@ jobs:
|
|||||||
--name google-services.json --file ${{ github.workspace }}/app/src/standardBeta/google-services.json --output none
|
--name google-services.json --file ${{ github.workspace }}/app/src/standardBeta/google-services.json --output none
|
||||||
|
|
||||||
- name: Download Firebase credentials
|
- name: Download Firebase credentials
|
||||||
if: ${{ matrix.variant == 'prod' && inputs.distribute-to-firebase }}
|
if: ${{ matrix.variant == 'prod' && (inputs.distribute-to-firebase || github.event_name == 'push') }}
|
||||||
env:
|
env:
|
||||||
ACCOUNT_NAME: bitwardenci
|
ACCOUNT_NAME: bitwardenci
|
||||||
CONTAINER_NAME: mobile
|
CONTAINER_NAME: mobile
|
||||||
@ -346,11 +346,11 @@ jobs:
|
|||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Install Firebase app distribution plugin
|
- name: Install Firebase app distribution plugin
|
||||||
if: ${{ matrix.variant == 'prod' && github.ref_name == 'main' && inputs.distribute-to-firebase }}
|
if: ${{ matrix.variant == 'prod' && github.ref_name == 'main' && (inputs.distribute-to-firebase || github.event_name == 'push') }}
|
||||||
run: bundle exec fastlane add_plugin firebase_app_distribution
|
run: bundle exec fastlane add_plugin firebase_app_distribution
|
||||||
|
|
||||||
- name: Publish release artifacts to Firebase
|
- name: Publish release artifacts to Firebase
|
||||||
if: ${{ matrix.variant == 'prod' && matrix.artifact == 'apk' && github.ref_name == 'main' && inputs.distribute-to-firebase }}
|
if: ${{ matrix.variant == 'prod' && matrix.artifact == 'apk' && github.ref_name == 'main' && (inputs.distribute-to-firebase || github.event_name == 'push') }}
|
||||||
env:
|
env:
|
||||||
APP_PLAY_FIREBASE_CREDS_PATH: ${{ github.workspace }}/secrets/app_play_prod_firebase-creds.json
|
APP_PLAY_FIREBASE_CREDS_PATH: ${{ github.workspace }}/secrets/app_play_prod_firebase-creds.json
|
||||||
run: |
|
run: |
|
||||||
@ -358,7 +358,7 @@ jobs:
|
|||||||
service_credentials_file:${{ env.APP_PLAY_FIREBASE_CREDS_PATH }}
|
service_credentials_file:${{ env.APP_PLAY_FIREBASE_CREDS_PATH }}
|
||||||
|
|
||||||
- name: Publish beta artifacts to Firebase
|
- name: Publish beta artifacts to Firebase
|
||||||
if: ${{ (matrix.variant == 'prod' && matrix.artifact == 'apk') && github.ref_name == 'main' && inputs.distribute-to-firebase }}
|
if: ${{ (matrix.variant == 'prod' && matrix.artifact == 'apk') && github.ref_name == 'main' && (inputs.distribute-to-firebase || github.event_name == 'push') }}
|
||||||
env:
|
env:
|
||||||
APP_PLAY_FIREBASE_CREDS_PATH: ${{ github.workspace }}/secrets/app_play_prod_firebase-creds.json
|
APP_PLAY_FIREBASE_CREDS_PATH: ${{ github.workspace }}/secrets/app_play_prod_firebase-creds.json
|
||||||
run: |
|
run: |
|
||||||
@ -410,7 +410,7 @@ jobs:
|
|||||||
--name app_beta_fdroid-keystore.jks --file ${{ github.workspace }}/keystores/app_beta_fdroid-keystore.jks --output none
|
--name app_beta_fdroid-keystore.jks --file ${{ github.workspace }}/keystores/app_beta_fdroid-keystore.jks --output none
|
||||||
|
|
||||||
- name: Download Firebase credentials
|
- name: Download Firebase credentials
|
||||||
if: ${{ inputs.distribute-to-firebase }}
|
if: ${{ inputs.distribute-to-firebase || github.event_name == 'push' }}
|
||||||
env:
|
env:
|
||||||
ACCOUNT_NAME: bitwardenci
|
ACCOUNT_NAME: bitwardenci
|
||||||
CONTAINER_NAME: mobile
|
CONTAINER_NAME: mobile
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user