From ae232a847cc102e82c6fb6520c947798a0d4b115 Mon Sep 17 00:00:00 2001 From: Simon Templer Date: Fri, 10 May 2024 14:51:07 +0200 Subject: [PATCH] ci: add windows installer build --- .github/workflows/windows.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000000..8856c7bbfc --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,35 @@ +name: Windows installer + +on: + push: + branches: + - master + workflow_dispatch: {} + +jobs: + installer: + # Only on main repository (don't publish on forks) + if: github.repository_owner == 'halestudio' + + name: Build Windows installer + runs-on: windows-latest + steps: + - name: Setup Maven + uses: s4u/setup-maven-action@6d44c18d67d9e1549907b8815efa5e4dada1801b # v1.12.0 + with: + java-version: 17 + java-distribution: temurin + maven-version: 3.9.6 + + - name: Build installer + run: | + build.bat product -o windows -a x86_64 HALE + shell: cmd + + - name: Upload hale studio build (Installer) + id: upload-msi + uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 + with: + name: hale studio (Installer) + path: build/target/*.msi + retention-days: 90