Skip to content

Commit

Permalink
Add creating settings.xml with sonatype username/password for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbenckhuijsen committed Apr 16, 2024
1 parent 50c473e commit b0d89c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ jobs:
with:
java-version: '11'
distribution: 'temurin'
- uses: s4u/[email protected]
with:
servers: |
[{
"id": "central",
"username": "${{ secrets.SONATYPE_USERNAME }}",
"password": "${{ secrets.SONATYPE_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
Expand Down

0 comments on commit b0d89c5

Please sign in to comment.