Skip to content

Commit

Permalink
Deploy only Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Sep 17, 2024
1 parent a61785c commit 8f2f13d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8f2f13d

Please sign in to comment.