-
-
Notifications
You must be signed in to change notification settings - Fork 7
78 lines (66 loc) · 1.98 KB
/
build-all.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Build All
on: workflow_dispatch
jobs:
build-android-and-desktop-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup build environment
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Build
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
SIGN_KEY: ${{ secrets.SIGN_KEY }}
SIGN_PASS: ${{ secrets.SIGN_PASS }}
run: |
chmod +x gradlew
echo $KEYSTORE | base64 --decode > keystore.jks
./gradlew app:assembleFdroidRelease
./gradlew core:packageReleaseUberJarForCurrentOS
- name: Upload Android Build
uses: actions/upload-artifact@v4
with:
name: android
path: app/build/outputs/fdroid/**/*.apk
retention-days: 1
- name: Upload Desktop Build
uses: actions/upload-artifact@v4
with:
name: linux
path: core/build/compose/jars/*.jar
retention-days: 1
build-desktop-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup build environment
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Build
run: ./gradlew core:packageReleaseUberJarForCurrentOS
- name: Upload Desktop Build
uses: actions/upload-artifact@v4
with:
name: windows
path: core/build/compose/jars/*.jar
retention-days: 1
publish:
needs: [ build-android-and-desktop-linux, build-desktop-windows ]
runs-on: ubuntu-latest
steps:
- name: Downloading artifacts
uses: actions/download-artifact@v4
- name: Create release
run: |
echo "TODO, create release here"
ls -R