-
Notifications
You must be signed in to change notification settings - Fork 27
39 lines (37 loc) · 1.17 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
name: BuildApk
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- uses: gradle/gradle-build-action@v2
with:
gradle-version: current
arguments: assembleRelease
- name: List Build Tools Files
run: ls /usr/local/lib/android/sdk/build-tools/
- uses: ilharp/sign-android-release@v1 # Or use @nightly
name: Sign app APK
id: sign_app
with:
releaseDir: app/build/outputs/apk/release
signingKey: ${{ secrets.ANDROID_SIGNING_KEY }}
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
buildToolsVersion: 34.0.0
- run: mkdir release_apk
- run: mv ${{steps.sign_app.outputs.signedFile}} release_apk/MiWu.apk
- name: Archive Apk File
uses: actions/upload-artifact@v3
with:
name: apk_file
path: release_apk/