From 7feda0ede97530198e7e4891950bbc168332df0e Mon Sep 17 00:00:00 2001 From: Nassim Boutekedjiret Date: Wed, 10 Jan 2024 17:19:02 +0100 Subject: [PATCH] Update maven-release.yml --- .github/workflows/maven-release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index e0a8f13..76ba31f 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -117,15 +117,17 @@ jobs: path: release.properties release: - name: Release v${{ inputs.releaseVersion }} on ${{ matrix.os }} + name: Release v${{ inputs.releaseVersion }} on ${{ matrix.config.os }} needs: prepare - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.config.os }} strategy: matrix: - os: [ ubuntu-latest, windows-latest ] + config: + - { os: ubuntu-latest, mavenProfile: linux } + - { os: windows-latest, mavenProfile: windows } steps: @@ -149,6 +151,7 @@ jobs: id: perform run: | mvn -B -U \ + -P${{ matrix.config.mavenProfile }} release:perform \ -Dgoals=deploy \ -DworkingDirectory=$GITHUB_WORKSPACE/target/release \ @@ -166,7 +169,7 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: jre-${{ matrix.os }} + name: jre-${{ matrix.config.os }} path: | ./target/release/target/*.buildinfo ./target/release/metricshub-jre-*/target/*.zip