-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (47 loc) · 1.78 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
name: Android CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
paths-ignore: [ "/app/src/main/res/values-*/strings.xml" ]
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: Sign artifact release APK
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/artifact/release
signingKeyBase64: ${{ secrets.KEYSTORE }}
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
alias: ${{ secrets.APP_NAME_KEY }}
keyPassword: ${{ secrets.APP_NAME_KEY_PASSWORD }}
- name: Rename artifact signed release APK
run: mv app/build/outputs/apk/artifact/release/app-artifact-release-unsigned-aligned.apk app/build/outputs/apk/artifact/release/app-artifact-release.apk
- 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