Release #54
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: Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Extract keystore file | |
run: echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > $GITHUB_WORKSPACE/signing-key.jks | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build APKs with Gradle | |
run: | | |
./gradlew assembleRelease \ | |
-Pandroid.injected.signing.store.file=$GITHUB_WORKSPACE/signing-key.jks \ | |
-Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PW }} \ | |
-Pandroid.injected.signing.key.alias=${{ secrets.KEYSTORE_ALIAS }} \ | |
-Pandroid.injected.signing.key.password=${{ secrets.KEYSTORE_PW }} | |
- name: Build AABs with Gradle | |
run: | | |
./gradlew bundleRelease \ | |
-Pandroid.injected.signing.store.file=$GITHUB_WORKSPACE/signing-key.jks \ | |
-Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PW }} \ | |
-Pandroid.injected.signing.key.alias=${{ secrets.KEYSTORE_ALIAS }} \ | |
-Pandroid.injected.signing.key.password=${{ secrets.KEYSTORE_PW }} | |
- name: Remove keystore file | |
run: rm $GITHUB_WORKSPACE/signing-key.jks | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true | |
draft: true | |
files: | | |
./app/build/outputs/apk/standard/release/app-standard-release.apk | |
./app/build/outputs/apk/bundled/release/app-bundled-release.apk | |
./app/build/outputs/bundle/bundledRelease/app-bundled-release.aab | |
./app/build/outputs/bundle/standardRelease/app-standard-release.aab |