From 8f2f13d1e271e8110bb8ba86d6d9d98a6c83d9ba Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Tue, 17 Sep 2024 11:00:43 +0200 Subject: [PATCH] Deploy only Java 11 --- .github/workflows/maven.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 847402c9..7ac4674e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -55,8 +55,13 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - - name: Build and deploy with Maven + - name: Publish to the Maven Central Repository run: mvn --batch-mode --update-snapshots deploy + if: matrix.Java == 11 env: MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + + - name: Maven Build + run: mvn --batch-mode --update-snapshots install + if: matrix.Java != 11