-
-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (35 loc) · 1.03 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
name: Build Release
on:
push:
tags:
- "v*.*"
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Prepare signing configuration
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
run: echo $KEYSTORE | base64 --decode > keystore.jks
- name: Build
env:
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
SIGN_KEY: ${{ secrets.SIGN_KEY }}
SIGN_PASS: ${{ secrets.SIGN_PASS }}
run: |
./gradlew app:assembleFdroidRelease
echo "OUTPUT_FILE_PATH=$(find ~+ -name "*.apk" -print -quit)" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ env.OUTPUT_FILE_PATH }}