From 895597b91f96017444219e1ce2f5c6087b025eb0 Mon Sep 17 00:00:00 2001 From: RatzzFatzz Date: Mon, 3 Feb 2025 23:32:37 +0100 Subject: [PATCH] Fix github action --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1746666..8aae7b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,24 +6,24 @@ on: types: [created] jobs: - build: + portable-build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - - name: Set up JDK 11 + - name: Set up JDK 21 uses: actions/setup-java@v2 with: distribution: temurin - java-version: 11 + java-version: 21 - name: Setup workspace run: mkdir artifacts - name: Build with Maven run: | - mvn clean package --file pom.xml + mvn clean package --file pom.xml -P portable cp target/M*.{zip,tar} artifacts/ - name: Upload artifacts @@ -33,3 +33,27 @@ jobs: with: args: 'artifacts/M*' + windows-installer-build: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up JDK 21 + uses: actions/setup-java@v2 + with: + distribution: temurin + java-version: 21 + + - name: Setup workspace + run: mkdir artifacts + + - name: Build with Maven + run: mvn clean package --file pom.xml -P windows + + - name: Upload artifacts + uses: skx/github-action-publish-binaries@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: 'target/installer/*' \ No newline at end of file