-
Notifications
You must be signed in to change notification settings - Fork 34
36 lines (30 loc) · 1.15 KB
/
release.yml
File metadata and controls
36 lines (30 loc) · 1.15 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
name: Release APK
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Android
uses: ./.github/actions/android-setup
- name: Configure Keystore
run: |
echo "${{ secrets.KEYSTORE_FILE }}" > keystore.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.asc > app/keystore
echo "storeFile=app/keystore" >> local.properties
echo "storePassword=${{ secrets.KEYSTORE_STORE_PASSWORD }}" >> local.properties
echo "keyAlias=${{ secrets.KEYSTORE_KEY_ALIAS }}" >> local.properties
echo "keyPassword=${{ secrets.KEYSTORE_KEY_PASSWORD }}" >> local.properties
- name: Build Other Release APK
run: ./gradlew app:assembleOtherRelease
- name: Create Prerelease and Upload APK
uses: softprops/action-gh-release@v2
with:
body: "See [CHANGELOG.md](https://github.com/timer-machine/timer-machine-android/blob/main/CHANGELOG.md)"
files: app/build/outputs/apk/other/release/*.apk