-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.45 KB
/
main.yaml
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
name: Android Main Branch CI
on:
push:
branches:
- 'main'
paths:
- 'androidApp/**.kt'
- 'androidApp/**.xml'
- 'androidApp/proguard-rules.pro'
- '**.gradle.kts'
- '.github/workflows/main.yaml'
env:
ANDROID_ADMOB_KEY: ${{ secrets.ANDROID_ADMOB_KEY }}
ANDROID_ADMOB_NATIVE_KEY: ${{ secrets.ANDROID_ADMOB_NATIVE_KEY }}
GOOGLE_SERVICES_JSON: ${{ secrets.ANDROID_GOOGLE_SERVICES_JSON_64 }}
KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
HOST: ${{ secrets.HOST }}
BEARER: ${{ secrets.BEARER }}
jobs:
apk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set config files
run: echo $GOOGLE_SERVICES_JSON | base64 -d > androidApp/src/release/google-services.json
- name: Run Build
run: ./gradlew assembleRelease
- name: Create note
run: git log -1 > note.txt
- name: Upload Firebase App Distribution
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
run: ./gradlew appDistributionUploadRelease