Skip to content

Build Windows Installer #158

Build Windows Installer

Build Windows Installer #158

# 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
name: Build Windows Installer
on:
workflow_dispatch:
branches: [ master ]
push:
branches: [ master ]
paths:
- RCaNconstructor/**
jobs:
build:
runs-on: windows-latest
steps:
- name: Download Wix
uses: i3h/download-release-asset@v1
with:
owner: wixtoolset
repo: wix3
tag: wix3112rtm
file: wix311-binaries.zip
- name: Decompress Wix
uses: DuckSoft/[email protected]
with:
pathSource: wix311-binaries.zip
pathTarget: ./target/wix
- name: Add Wix to Path
run: echo "$HOME/target/wix" >> $GITHUB_PATH
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21.0.4
distribution: 'liberica'
java-package: jdk+fx
cache: 'maven'
- name: Build with Maven
run: mvn -B clean install --file RCaNconstructor/pom.xml
- name: Update Automatic Release
uses: mathieucarbou/marvinpinto-action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN}}"
automatic_release_tag: "Windows-latest"
prerelease: true
title: "Windows Development Build"
files: ./RCaNconstructor/target/*.msi