-
-
Notifications
You must be signed in to change notification settings - Fork 25
61 lines (53 loc) · 1.98 KB
/
fdroid_release.yaml
File metadata and controls
61 lines (53 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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 }}