-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yaml
79 lines (72 loc) · 2.25 KB
/
action.yaml
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
79
name: KMP Publish Desktop App
description: 'Publish the desktop app to the respective app stores'
author: 'Mifos Initiative'
branding:
icon: 'upload-cloud'
color: 'purple'
inputs:
desktop_package_name:
description: 'Name of the Android project module'
required: true
windows_signing_key:
description: 'Windows signing key'
required: false
windows_signing_password:
description: 'Windows signing password'
required: false
windows_signing_certificate:
description: 'Windows signing certificate'
required: false
macos_signing_key:
description: 'MacOS signing key'
required: false
macos_signing_password:
description: 'MacOS signing password'
required: false
macos_signing_certificate:
description: 'MacOS signing certificate'
required: false
linux_signing_key:
description: 'Linux signing key'
required: false
linux_signing_password:
description: 'Linux signing password'
required: false
linux_signing_certificate:
description: 'Linux signing certificate'
required: false
runs:
using: 'composite'
steps:
- name: Set up Java development environment
uses: actions/setup-java@v4
with:
distribution: 'zulu' # Use Zulu distribution of OpenJDK
java-version: '17' # Use Java 17 version
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
# Cache Gradle dependencies and build outputs to speed up future builds
- name: Cache Gradle and build outputs
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
build
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Package Desktop App
shell: bash
run: ./gradlew packageReleaseDistributionForCurrentOS
- name: Publish Windows App
if: runner.os == 'windows-latest'
shell: bash
run: echo "Publishing Windows Desktop App"
- name: Publish Linux App
if: runner.os == 'ubuntu-latest'
shell: bash
run: echo "Publishing Linux Desktop App"
- name: Publish MacOS App
if: runner.os == 'macos-latest'
shell: bash
run: echo "Publishing MacOS Desktop App"