Skip to content

Provide Signed Release for F-Droid #10

Provide Signed Release for F-Droid

Provide Signed Release for F-Droid #10

Workflow file for this run

name: Provide Signed Release for F-Droid
on:
workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out Repository
uses: actions/checkout@v4
- name: Set Up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Assemble Release
run: ./gradlew clean assembleFdroidRelease
- name: Setup Build Tools Version
shell: bash
run: |
BUILD_TOOLS_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
echo "BUILD_TOOLS_VERSION=$BUILD_TOOLS_VERSION" >> $GITHUB_ENV
echo Last build tools version is: $BUILD_TOOLS_VERSION
- name: Sign Release
uses: r0adkll/sign-android-release@v1
id: sign_release
with:
releaseDirectory: app/build/outputs/apk/fdroid/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOLS_VERSION }}
- name: Rename APK
run: mv ${{steps.sign_release.outputs.signedReleaseFile}} app/build/outputs/apk/fdroid/release/app-fdroid-release.apk
- name: Create Release on GitHub
uses: ncipollo/release-action@v1
with:
artifacts: 'app/build/outputs/apk/fdroid/release/app-fdroid-release.apk'
artifactErrorsFailBuild: true
tag: '${{ github.ref_name}}-fdroid'
commit: master
generateReleaseNotes: true
body: 'Provides a signed APK for reproducible builds.'