Skip to content

BuildApk

BuildApk #27

Workflow file for this run

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/