-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.27 KB
/
build-release.yml
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
name: Release Android app
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'zulu'
cache: 'gradle'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
packages: '' # no extra packages needed
- name: Install Android build-tools
run: sdkmanager build-tools
- name: Build APK
run: ./gradlew --no-daemon packageRelease
- name: Sign APK
uses: r0adkll/sign-android-release@v1
id: sign_apk
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.KEYSTORE_DATA }}
alias: questionmark
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.KEYSTORE_PASSWORD }}
- name: Rename APK
run: mv ${{ steps.sign_apk.outputs.signedReleaseFile }} org.thequestionmark.questionmark.apk
- name: Create Github Release
uses: softprops/action-gh-release@v2
with:
files: org.thequestionmark.questionmark.apk