-
Notifications
You must be signed in to change notification settings - Fork 1.1k
55 lines (45 loc) · 1.53 KB
/
Build-Apk.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
49
50
51
52
53
54
55
name: Build-Apk
on:
workflow_dispatch:
push:
branches:
- '**'
paths-ignore:
- 'LICENSE'
- '*.md'
- '.github/**'
jobs:
build:
if: ${{ !startsWith(github.event.head_commit.message, 'chore:') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
- uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
gradle-home-cache-cleanup: true
- name: write secrets info
run: |
echo ${{ secrets.GKD_STORE_FILE_BASE64 }} | base64 --decode > ${{ github.workspace }}/key.jks
echo GKD_STORE_FILE='${{ github.workspace }}/key.jks' >> gradle.properties
echo GKD_STORE_PASSWORD='${{ secrets.GKD_STORE_PASSWORD }}' >> gradle.properties
echo GKD_KEY_ALIAS='${{ secrets.GKD_KEY_ALIAS }}' >> gradle.properties
echo GKD_KEY_PASSWORD='${{ secrets.GKD_KEY_PASSWORD }}' >> gradle.properties
- run: chmod 777 ./gradlew
- run: ./gradlew app:assembleRelease
- uses: actions/upload-artifact@v4
with:
name: outputs
path: app/build/outputs
- uses: actions/upload-artifact@v4
with:
name: default-release
path: app/build/outputs/apk/default/release
- uses: actions/upload-artifact@v4
with:
name: fdroid-release
path: app/build/outputs/apk/fdroid/release