From 48b10af5ec40d04652b69a04a4a5c0bf09205d69 Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Tue, 17 Sep 2024 11:18:41 +0200 Subject: [PATCH] Updated GitHub actions --- .github/workflows/{maven-publish.yml => maven.yml} | 6 ++++++ 1 file changed, 6 insertions(+) rename .github/workflows/{maven-publish.yml => maven.yml} (92%) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven.yml similarity index 92% rename from .github/workflows/maven-publish.yml rename to .github/workflows/maven.yml index a0c8985b1..1872595a8 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven.yml @@ -25,6 +25,7 @@ on: branches: - master - '1.x' + - '2.x' jobs: build: @@ -55,6 +56,11 @@ jobs: - name: Publish to the Maven Central Repository run: mvn --batch-mode --update-snapshots deploy + if: matrix.Java == 17 env: MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + + - name: Maven Build + run: mvn --batch-mode --update-snapshots install + if: matrix.Java != 17