-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (35 loc) · 1.44 KB
/
firebase_cd.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
44
45
# ref: https://dev.to/supersuman/build-and-sign-android-apps-using-github-actions-54j
name: Android QA Build CD
on: [ workflow_dispatch ]
jobs:
qa-build-cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
- name: Create Local Properties
run: |
echo "${{ secrets.PPAC_LOCAL_PROPERTIES }}" > ./local.properties
- name: Create file
run: cat /home/runner/work/ppac-android/ppac-android/app/google-services.json | base64
- name: Putting data
env:
DATA: ${{ secrets.PPAC_GOOGLE_SERVICES }}
run: echo $DATA > /home/runner/work/ppac-android/ppac-android/app/google-services.json
- name: Create KeyStore Properties
run: |
echo "${{ secrets.PPAC_KEYSTORE_PROPERTIES }}" > ./farmeme-keystore.properties
- name: Build APK
run: ./gradlew assembleDebug
- name: Upload Build to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{ secrets.PPAC_FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.PPAC_FIREBASE_CREDENTIAL }}
groups: android-tester
file: app/build/outputs/apk/release/app-release.apk
# app/build/outputs/apk/standard/stage/release/app-standard-stage-release.apk