Skip to content

Merge pull request #5 from CryZo/fdroid-preparations #18

Merge pull request #5 from CryZo/fdroid-preparations

Merge pull request #5 from CryZo/fdroid-preparations #18

Workflow file for this run

name: Build & Publish APK
on:
push:
branches:
- main
jobs:
Gradle:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: setup jdk
uses: actions/setup-java@v1
with:
java-version: 17
- name: Make Gradle executable
run: chmod +x ./gradlew
- name: Build Release APK
run: ./gradlew assembleRelease
- name: Build Debug APK
run: ./gradlew assembleDebug
- name: version
run: echo "CUR_VERSION=$(grep -o -E 'versionName = \"[[:digit:]\.]+\"' app/build.gradle.kts | grep -o -E '[[:digit:]\.]+')" >> $GITHUB_OUTPUT
id: version
- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
make_latest: true
tag_name: ${{ steps.version.outputs.CUR_VERSION }}
files: |
app/build/outputs/apk/release/app-release-unsigned.apk
app/build/outputs/apk/debug/app-debug.apk
permissions:
contents: write