diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be6abaa..bf26e59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,7 +60,8 @@ jobs: - name: Publish to Maven Central run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository env: - ORG_GRADLE_PROJECT_nexusUsername: ${{ secrets.OSSRH_USERNAME }} - ORG_GRADLE_PROJECT_nexusPassword: ${{ secrets.OSSRH_PASSWORD }} + ORG_GRADLE_PROJECT_ossrh_staging_profile_id: ${{ secrets.OSSRH_STAGING_PROFILE_ID }} + ORG_GRADLE_PROJECT_ossrh_username: ${{ secrets.OSSRH_USERNAME }} + ORG_GRADLE_PROJECT_ossrh_password: ${{ secrets.OSSRH_PASSWORD }} ORG_GRADLE_PROJECT_signing_key: ${{ secrets.SIGNING_KEY }} ORG_GRADLE_PROJECT_signing_password: ${{ secrets.SIGNING_PASSWORD }} diff --git a/build.gradle b/build.gradle index e8e9a5c..4b900cd 100644 --- a/build.gradle +++ b/build.gradle @@ -85,6 +85,10 @@ signing { nexusPublishing { connectTimeout = clientTimeout = Duration.ofHours(1) repositories { - sonatype {} + sonatype { + stagingProfileId = project.findProperty('ossrh_staging_profile_id') + username = project.findProperty('ossrh_username') + password = project.findProperty('ossrh_password') + } } }