Skip to content

Commit

Permalink
Improved actions
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Sep 17, 2024
1 parent 5970ca8 commit e3352e9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ jobs:
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
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 e3352e9

Please sign in to comment.