-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (38 loc) · 1.09 KB
/
windows.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
name: Build installer for Windows
on:
push:
branches:
- java21
jobs:
build-app:
strategy:
matrix:
os: [ windows-2019 ]
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
- run: $Env:Path += ";C:\Program Files (x86)\WiX Toolset v3.11\bin"
- name: build
run: .\gradlew.bat jpackage
shell: pwsh
- name: copy
run: New-Item -Name "staging" -ItemType "directory"; Copy-Item ".\build\build-package\*.msi" -Destination "staging"
shell: pwsh
- 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