Skip to content

Commit c198283

Browse files
committed
Leverage Sonatype Central token for SNAPSHOT deployment
1 parent 0c4a4c8 commit c198283

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/maven.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
distribution: 'temurin'
3434
java-version: ${{ matrix.jdk }}
3535
# generate settings.xml with the correct values
36-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
36+
server-id: sonatype-central-portal # Value of the distributionManagement/repository/id field of the pom.xml
3737
server-username: MAVEN_USERNAME # env variable for username in deploy
3838
server-password: MAVEN_PASSWORD # env variable for token in deploy
3939
cache: 'maven'
@@ -63,8 +63,8 @@ jobs:
6363
env:
6464
# NVD API key used by dependency-check
6565
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
66-
MAVEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USER }}
67-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
66+
MAVEN_USERNAME: ${{ secrets.SONATYPE_CENTRAL_TOKEN_USER }}
67+
MAVEN_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_TOKEN_PASSWORD }}
6868
# SonarCloud access token should be generated from https://sonarcloud.io/account/security/
6969
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
7070
# Needed to get some information about the pull request, if any

0 commit comments

Comments
 (0)