Skip to content

v1.1

v1.1 #36

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
MacOs:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
architecture: x64
- uses: apple-actions/import-codesign-certs@v2
with:
p12-file-base64: ${{ secrets.MACOS_DEV_CERT }}
p12-password: ${{ secrets.MACOS_DEV_CERT_PASSWORD }}
- name: Build
run: |
chmod 755 mvnw
./mvnw clean package --batch-mode --no-transfer-progress
- name: Create executable
id: vars
run: |
$JAVA_HOME/bin/jpackage @target/jpackage-macos.args --type dmg
echo "distr_name=$(cd target/distr/macos && ls *.dmg)" >> $GITHUB_OUTPUT
- name: Notarize Release Build
uses: lando/notarize-action@v2
with:
product-path: target/distr/macos/${{ steps.vars.outputs.distr_name }}
appstore-connect-username: ${{ secrets.MACOS_NOTARIZATION_USERNAME }}
appstore-connect-password: ${{ secrets.MACOS_NOTARIZATION_PASSWORD }}
appstore-connect-team-id: ${{ secrets.MACOS_NOTARIZATION_TEAM_ID }}
- uses: softprops/action-gh-release@v2
with:
draft: true
files: target/distr/macos/*.dmg
Windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
architecture: x64
- run: |
./mvnw clean package --batch-mode --no-transfer-progress
- run: |
%JAVA_HOME%\bin\jpackage.exe @target\jpackage-win.args ^
--type exe ^
--win-per-user-install ^
--win-shortcut ^
--win-menu ^
--win-menu-group ZooInspector ^
--win-upgrade-uuid a68e451c-3cae-4e4a-bf2b-eedf7c501414
shell: cmd
- uses: softprops/action-gh-release@v2
with:
draft: true
files: target/distr/win/*.exe