-
-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (39 loc) · 1.54 KB
/
mac-build.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
name: Build Mac Package
on:
workflow_dispatch:
jobs:
mac-build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Create Sekrets
run: |
./gradlew createSekretProperties -Pkey=GITHUB_CLIENT_ID -Pvalue=${{ secrets.GH_CLIENT_ID }};
./gradlew createSekretProperties -Pkey=GITHUB_CLIENT_SECRET -Pvalue=${{ secrets.GH_CLIENT_SECRET }};
./gradlew createSekretProperties -Pkey=FIREBASE_PROJECT -Pvalue=${{ secrets.FIREBASE_PROJECT }};
./gradlew createSekretProperties -Pkey=FIREBASE_APPLICATION -Pvalue=${{ secrets.FIREBASE_APPLICATION }};
./gradlew createSekretProperties -Pkey=FIREBASE_API_KEY -Pvalue=${{ secrets.FIREBASE_API_KEY }}
- name: Generate Sekret binary
run: ./gradlew composeApp:createSekretNativeBinary
- name: Copy Sekrets
run: ./gradlew composeApp:copySekretNativeBinary
- name: Build
continue-on-error: true
run: ./gradlew build
- name: Package
run: ./gradlew composeApp:packageDmg; ./gradlew composeApp:packageUberJarForCurrentOS
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: |
build/release/main/dmg/*.dmg
composeApp/build/compose/jars/Burning-Series-*.jar
retention-days: 1