generated from marcin-chwedczuk/javafx-template
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (36 loc) · 1.25 KB
/
maven-build-installer-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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
# Fix for application is damaged error
# - Copy app to applications folder
# - Run in terminal: sudo xattr -cr img2h.app
# See: https://github.com/archimatetool/archi/issues/555#issuecomment-554965144
# for details.
name: Build macOS Installer
on:
workflow_run:
workflows: ["Build and run tests (CI)"]
branches: ["main"]
types:
- completed
jobs:
build:
# Run only if main workflow succeeded
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
uses: actions/setup-java@v1
with:
java-version: 16
distribution: 'adopt'
- name: "Build with Maven"
run: ./mvnw -B clean install -P mkinstaller
- name: "Update Automatic Release"
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{secrets.GITHUB_TOKEN}}"
automatic_release_tag: "macOS-latest"
prerelease: false
title: "macOS Development Build"
files: ./gui/target/*.dmg