-
Notifications
You must be signed in to change notification settings - Fork 12
41 lines (35 loc) · 1005 Bytes
/
macos.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
name: Build installer for macOS
on:
push:
branches:
- java21
jobs:
build-app:
strategy:
matrix:
os: [ macos-12 ]
name: Build the application
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 21
- name: chmod gradlew
run: chmod +x ./gradlew
- run: ./gradlew jpackage
- run: mkdir staging && rm -rf build/build-package/JavaFXSample.app && cp build/build-package/*.dmg staging
- name: get current time
uses: 1466587594/get-current-time@v2
id: current-time
with:
format: YYYYMMDD-HH
utcOffset: "+08:00"
- name: upload build result
uses: actions/upload-artifact@v2
with:
name: JavaFXSample-${{ steps.current-time.outputs.formattedTime }}-${{ matrix.os }}
path: staging