-
Notifications
You must be signed in to change notification settings - Fork 72
39 lines (34 loc) · 946 Bytes
/
jpackage-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
# This workflow will build a Java project with Ant
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant
name: JPackage MacOS
on:
workflow_dispatch
# push:
# branches: [ $default-branch ]
# pull_request:
# branches: [ $default-branch ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 15
- name: Build jar file with Ant
run: ant -noinput -buildfile timer/build.xml
- name: jpackage
run: >
jpackage
--type pkg
--name derby-timer
--verbose
--input timer/dist/lib
--main-jar derby-timer.jar
--main-class org.jeffpiazza.derby.TimerMain
- name: upload
uses: actions/upload-artifact@v2
with:
name: macos-jar
path: derby-timer*.pkg