Skip to content

Increment version code #2

Increment version code

Increment version code #2

Workflow file for this run

name: FDroid Release
on:
push:
tags:
- "*fdroid*"
jobs:
build-release:
name: Build & Publish Signed APK
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout
uses: actions/checkout@v6
# Install JDK
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
# Build APK
- name: Build APK
run: ./gradlew assembleRelease
# Sign APK
- name: Sign APK
uses: r0adkll/sign-android-release@v1
# ID used to access action output
id: sign_apk
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
# Build Changelog
- name: Build Changelog
id: build_changelog
uses: ardalanamini/auto-changelog@v3
with:
mention-authors: false
mention-new-contributors: true
include-compare: true
semver: false
# Create GitHub Release and attach APK
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
files: ${{ steps.sign_apk.outputs.signedReleaseFile }}
body: ${{ steps.build_changelog.outputs.changelog }}  
env:
GITHUB_TOKEN: ${{ github.token }}