Skip to content

Commit

Permalink
Update publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
Duckelekuuk committed Aug 28, 2023
1 parent 8788d7e commit bb0dc6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ jobs:
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17.0.8+7'
distribution: 'temurin'
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- if: github.event.release
name: Update version in pom.xml (Release only)
run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false
- name: Publish package
run: mvn --batch-mode deploy
env:
Expand Down

0 comments on commit bb0dc6d

Please sign in to comment.