-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.28 KB
/
build_artifact_and_release_firebase.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build and Release
on:
push:
branches:
- main
jobs:
Firebase-App-Distribution:
runs-on: ubuntu-latest
steps:
- name: Decode Keystore
id: decode_keystore
uses: timheuer/[email protected]
with:
fileName: 'keystore/your_signing_keystore.jks'
encodedString: ${{ secrets.KEYSTORE }}
- uses: actions/checkout@main
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Update Secrets
env:
MAPS_API_KEY: ${{ secrets.MAPS_API_KEY }}
run: echo 'MAPS_API_KEY=${{ secrets.MAPS_API_KEY }}' > ./local.properties
- name: Build the Release AAB
run: ./gradlew bundleRelease
env:
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
- name: Firebase Distribution
uses: wzieba/[email protected]
with:
appId: ${{secrets.FIREBASE_APP_ID}}
serviceCredentialsFileContent: ${{secrets.CREDENTIAL_FILE_CONTENT}}
file: app/build/outputs/bundle/release/app-release.aab