Skip to content

Commit 9738bf6

Browse files
committed
Add fdroid_release.yaml
1 parent 83844c5 commit 9738bf6

File tree

3 files changed

+61
-58
lines changed

3 files changed

+61
-58
lines changed

.github/signing_setup.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: FDroid Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*fdroid*"
7+
8+
jobs:
9+
build-release:
10+
name: Build & Publish Signed APK
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Checkout the repository
15+
- name: Checkout
16+
uses: actions/checkout@v6
17+
18+
# Install JDK
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v5
21+
with:
22+
java-version: '17'
23+
distribution: 'temurin'
24+
cache: gradle
25+
26+
# Build APK
27+
- name: Build APK
28+
run: ./gradlew assembleRelease
29+
30+
# Sign APK
31+
- name: Sign APK
32+
uses: r0adkll/sign-android-release@v1
33+
# ID used to access action output
34+
id: sign_apk
35+
with:
36+
releaseDirectory: app/build/outputs/apk/release
37+
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
38+
alias: ${{ secrets.ALIAS }}
39+
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
40+
keyPassword: ${{ secrets.KEY_PASSWORD }}
41+
42+
# Build Changelog
43+
- name: Build Changelog
44+
id: build_changelog
45+
uses: ardalanamini/auto-changelog@v3
46+
with:
47+
mention-authors: false
48+
mention-new-contributors: true
49+
include-compare: true
50+
semver: false
51+
52+
# Create GitHub Release and attach APK
53+
- name: Create GitHub Release
54+
uses: softprops/action-gh-release@v2
55+
with:
56+
tag_name: ${{ github.ref_name }}
57+
name: ${{ github.ref_name }}
58+
files: ${{ steps.sign_apk.outputs.signedReleaseFile }}
59+
body: ${{ steps.build_changelog.outputs.changelog }}  
60+
env:
61+
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/gh_apk_release.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)