Skip to content

Generate Release Version #6

Generate Release Version

Generate Release Version #6

Workflow file for this run

name: Release build APK
on:
workflow_dispatch:
jobs:
deploy:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: "oracle"
java-version: "17"
cache: "gradle"
- name: Generate Keystore
env:
KEYSTORE_B64: ${{ secrets.APP_KEYSTORE }}
run: |
echo $KEYSTORE_B64 \
| sed 's/[^A-Za-z0-9+/=]//g' \
| base64 -d > keystore.jks
working-directory: ./app
- name: Build Release APK
env:
SIGNING_KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
SIGNING_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: ./gradlew assembleRelease
- name: Upload Release APK
uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
name: release-${{ github.sha }}
path: ${{ github.workspace }}/app/build/outputs/apk/release/app-release.apk