-
Notifications
You must be signed in to change notification settings - Fork 89
52 lines (52 loc) · 2.01 KB
/
buid-app-workflow.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
name: Build
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 17
cache: gradle
- name: Decode Keystore
uses: timheuer/base64-to-file@v1
id: android_keystore
with:
fileName: "android_keystore.keystore"
encodedString: ${{ secrets.KEYSTORE }}
- name: Build the app
run: ./gradlew assembleRelease -PshowUpdateButton=true -Pandroid.injected.signing.store.file=${{ steps.android_keystore.outputs.filePath }} -Pandroid.injected.signing.store.password=${{ secrets.PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.ALIAS }} -Pandroid.injected.signing.key.password=${{ secrets.PASSWORD }}
- name: Upload arm64-v8a APK
uses: actions/upload-artifact@v4
with:
name: app-arm64-v8a-release.apk
path: app/build/outputs/apk/release/app-arm64-v8a-release.apk
- name: Upload x86_64 APK
uses: actions/upload-artifact@v4
with:
name: app-x86_64-release.apk
path: app/build/outputs/apk/release/app-x86_64-release.apk
- name: Upload armeabi-v7a APK
uses: actions/upload-artifact@v4
with:
name: app-armeabi-v7a-release.apk
path: app/build/outputs/apk/release/app-armeabi-v7a-release.apk
- name: Upload universal APK
uses: actions/upload-artifact@v4
with:
name: app-universal-release.apk
path: app/build/outputs/apk/release/app-universal-release.apk
- name: Upload x86 APK
uses: actions/upload-artifact@v4
with:
name: app-x86-release.apk
path: app/build/outputs/apk/release/app-x86-release.apk
- name: Upload
uses: actions/upload-artifact@v4
with:
name: app-release.apk
path: app/build/outputs/apk/release/app-release.apk