From 05535fc87edd810eeed79e52eed18eadf8b08f36 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 17 Apr 2024 21:08:28 +0100 Subject: [PATCH] ci --- .gitea/workflows/publish.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index c20ffa6..3c6e377 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -7,12 +7,19 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Set up Maven Central Repository - uses: actions/setup-java@v4 + # Checkout the repo + - name: Checkout + uses: actions/checkout@v4 + + # Setup Java and Maven + - name: Set up JDK and Maven + uses: s4u/setup-maven-action@v1.12.0 with: - java-version: '17' - distribution: 'adopt' + java-version: ${{ matrix.java-version }} + distribution: "zulu" + maven-version: ${{ matrix.maven-version }} + + # Publish the package - name: Publish package run: mvn --batch-mode deploy env: