Skip to content

Commit cc7c717

Browse files
authored
build(ci): update Sonatype publishing credentials and API endpoint (#824)
- Update nexusPublishing configuration with correct API endpoint - Replace MAVEN_USERNAME/PASSWORD with SONATYPE_USERNAME/PASSWORD - Update GitHub Actions workflow to use new credentials
1 parent 26ea52d commit cc7c717

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/package-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858
- name: Publish package
5959
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
6060
env:
61-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
62-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
61+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
62+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
6363
SIGNING_KEYID: ${{ secrets.SIGNING_KEYID }}
6464
SIGNING_SECRETKEY: ${{ secrets.SIGNING_SECRETKEY }}
6565
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}

build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,9 @@ configure(publishProjects) {
249249
nexusPublishing {
250250
this.repositories {
251251
sonatype {
252-
username.set(System.getenv("MAVEN_USERNAME"))
253-
password.set(System.getenv("MAVEN_PASSWORD"))
252+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
253+
username.set(System.getenv("SONATYPE_USERNAME"))
254+
password.set(System.getenv("SONATYPE_PASSWORD"))
254255
}
255256
}
256257
}

0 commit comments

Comments
 (0)