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