Skip to content

Build and publish jpackage result to GitHub #79

Build and publish jpackage result to GitHub

Build and publish jpackage result to GitHub #79

Workflow file for this run

name: Build and publish jpackage result to GitHub
on:
push:
branches: [ master ]
# Necessary to manually run the workflow
workflow_dispatch:
jobs:
createmanual:
runs-on: ubuntu-latest
steps:
- name: Configure
uses: actions/checkout@v3
- name: Create output folder
run: |
mkdir output # create output dir
- name: Convert MD files to PDF
uses: docker://pandoc/latex:2.9
with:
args: --standalone --toc -V geometry:margin=2.5cm --number-sections --output=output/ConvertWithMoss-Manual.pdf README.md README-MACOS.md README-FORMATS.md CHANGELOG.md
- name: Publish result
uses: actions/upload-artifact@v3
with:
name: ConvertWithMoss-Installers
path: output/ConvertWithMoss-Manual.pdf
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: convertwithmoss*.deb
build_name: linux
- os: macos-11
artifact_name: ConvertWithMoss*.dmg
build_name: mac
- os: windows-latest
artifact_name: ConvertWithMoss*.msi
build_name: win
name: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Build and jpackage with Maven
run: mvn -B package jpackage::jpackage@${{ matrix.build_name }} --file pom.xml
- name: Publish jpackage result
uses: actions/upload-artifact@v3
with:
name: ConvertWithMoss-Installers
path: target/release/${{ matrix.artifact_name }}