Skip to content

Commit

Permalink
Using matrix build
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Mar 29, 2024
1 parent 629fced commit 67bffb7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '17', '21' ]
name: Java ${{ matrix.Java }} build

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK ${{ matrix.Java }}
uses: actions/setup-java@v4
with:
java-version: '11'
java-version: ${{ matrix.Java }}
distribution: 'adopt'
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
server-username: MAVEN_USERNAME
Expand Down

0 comments on commit 67bffb7

Please sign in to comment.