Build Release APK #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Release APK | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- '*' | |
concurrency: | |
group: "release-build" | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Check out repository | |
uses: actions/[email protected] | |
with: | |
submodules: true | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Set up Java 17 | |
uses: actions/[email protected] | |
with: | |
java-version: 17 | |
distribution: 'adopt' | |
cache: gradle | |
- name: Grant execution permission to Gradle Wrapper | |
run: chmod +x gradlew | |
- name: Build Release APK | |
uses: gradle/[email protected] | |
with: | |
arguments: assembleRelease | |
- name: Checks | |
run: cd app/build && ls -R | |
- uses: r0adkll/sign-android-release@v1 | |
name: Sign app APK | |
id: sign_app | |
with: | |
releaseDirectory: app/release | |
signingKeyBase64: ${{ secrets.KEY_BASE64 }} | |
alias: ${{ secrets.ALIAS }} | |
keyStorePassword: ${{ secrets.KEYSTORE_PASS }} | |
keyPassword: ${{ secrets.KEYSTORE_PASS }} | |
- uses: actions/[email protected] | |
with: | |
name: Signed APK | |
path: ${{steps.sign_app.outputs.signedReleaseFile}} |