-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (49 loc) · 1.66 KB
/
android-firebase-app-distribution.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Android Build & upload to Firebase App Distribution
on:
push:
branches: [ "develop" ]
defaults:
run:
working-directory: ./android
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: corretto
cache: gradle
- name: Create Properties File
env:
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: |
echo "$LOCAL_PROPERTIES" > local.properties
echo "$GOOGLE_SERVICES_JSON" > app/google-services.json
- name: Generate Keystore
env:
APP_KEYSTORE: ${{ secrets.APP_KEYSTORE }}
run: |
echo "$APP_KEYSTORE" > keystore_b64.txt
base64 --decode --ignore-garbage keystore_b64.txt > keystore.jks
working-directory: ./android/app
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: build release
env:
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
run: |
echo $STORE_PASSWORD
./gradlew assembleRelease
- name: upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{ secrets.FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: "부스트캠프-8기"
file: android/app/build/outputs/apk/release/app-release.apk