Skip to content

Commit

Permalink
Update maven-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NassimBtk authored Jan 10, 2024
1 parent eac2234 commit 7feda0e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -149,6 +151,7 @@ jobs:
id: perform
run: |
mvn -B -U \
-P${{ matrix.config.mavenProfile }}
release:perform \
-Dgoals=deploy \
-DworkingDirectory=$GITHUB_WORKSPACE/target/release \
Expand All @@ -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
Expand Down

0 comments on commit 7feda0e

Please sign in to comment.