-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (53 loc) · 1.93 KB
/
android.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
60
61
62
name: Android CI
on:
push:
branches: [ "master" ]
paths-ignore:
- "assets/**"
- "crowdin.yml"
- "*.[mM][dD]"
pull_request:
branches: [ "master" ]
paths-ignore:
- "app/src/main/res/values-*/strings.xml"
- "assets/**"
- "crowdin.yml"
- "*.[mM][dD]"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Upload artifact debug APK
uses: actions/upload-artifact@v3.1.3
with:
name: mset9installer-artifact-debug.apk
path: app/build/outputs/apk/artifact/debug/app-artifact-debug.apk
- name: Upload artifact unsigned release APK
uses: actions/upload-artifact@v3.1.3
with:
name: mset9installer-artifact-release-unsigned.apk
path: app/build/outputs/apk/artifact/release/app-artifact-release-unsigned.apk
- name: Decode keystore
uses: timheuer/base64-to-file@v1
id: android_keystore
with:
fileName: "android_keystore.keystore"
encodedString: ${{ secrets.KEYSTORE }}
- name: Assemble artifact signed release APK
run: ./gradlew assembleArtifactRelease -Pandroid.injected.signing.store.file=${{ steps.android_keystore.outputs.filePath }} -Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.APP_NAME_KEY }} -Pandroid.injected.signing.key.password=${{ secrets.APP_NAME_KEY_PASSWORD }}
- name: Upload artifact signed release APK
uses: actions/upload-artifact@v3.1.3
with:
name: mset9installer-artifact-release.apk
path: app/build/outputs/apk/artifact/release/app-artifact-release.apk