-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (40 loc) · 1.21 KB
/
build.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
name: Android CI
on:
push
jobs:
test:
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- name: Check Out Repository
uses: actions/checkout@v4
- name: Set Up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Unit Tests
run: bash ./gradlew test -Pbase64EncodedPublicKey=${{secrets.PUBLIC_KEY}} --stacktrace
apk:
name: Generate APK
runs-on: ubuntu-latest
steps:
- name: Check Out Repository
uses: actions/checkout@v4
- name: Set Up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Assemble App Debug APK
run: ./gradlew assembleDebug -Pbase64EncodedPublicKey=${{secrets.PUBLIC_KEY}} --stacktrace
- name: Upload App Play APK
uses: actions/upload-artifact@v4
with:
name: app-play-debug
path: app/build/outputs/apk/play/debug/app-play-debug.apk
- name: Upload App F-Droid APK
uses: actions/upload-artifact@v4
with:
name: app-fdroid-debug
path: app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk