Skip to content

update workflows

update workflows #19

Workflow file for this run

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@v4
with:
name: JavaFXSample-${{ steps.current-time.outputs.formattedTime }}-${{ matrix.os }}
path: staging