-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 1.23 KB
/
walkie_firebase_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
name: Walkie Firebase Distribution
on:
pull_request:
branches: [ "main", "develop", "compose/develop" ]
types: [ labeled ]
jobs:
build:
if: ${{ github.event.label.name == 'Distribution' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'zulu'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create google-service
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./presentation/google-services.json
- name: Create Local Properties
run: echo '${{ secrets.LOCAL_PROPERTIES }}' > ./local.properties
- name: Build with Gradle
run: ./gradlew build
- name: Build Debug APK
run: bash ./gradlew assembleDebug --stacktrace
- 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: walkieDeveloper
file: app/build/outputs/apk/debug/app-debug.apk