Skip to content

Commit

Permalink
Deploy OSSRH with environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
igorzep committed Sep 29, 2024
1 parent 771568e commit acd850b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ jobs:
java-version: '22'
distribution: 'temurin'
cache: maven
server-id: ossrh
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_PASSWORD }}
server-id: 'ossrh'
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
- name: Deploy to Sonatype OSSRH
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: mvn -B deploy --file pom.xml

0 comments on commit acd850b

Please sign in to comment.