diff --git a/.github/workflows/publish_sdks.yml b/.github/workflows/publish_sdks.yml index f2598ac..cc8d262 100644 --- a/.github/workflows/publish_sdks.yml +++ b/.github/workflows/publish_sdks.yml @@ -31,8 +31,8 @@ jobs: - name: Publish to MavenCentral run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository env: - OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} - OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} + OSSRH_TOKEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }} iOS_publish: name: Publish iOS release diff --git a/android/scripts/publish-root.gradle b/android/scripts/publish-root.gradle index 8a64d5d..1c36c61 100644 --- a/android/scripts/publish-root.gradle +++ b/android/scripts/publish-root.gradle @@ -1,5 +1,5 @@ -ext["ossrhUsername"] = project.hasProperty('ossrhUsername') ? project.property('ossrhUsername') : System.getenv('OSSRH_USERNAME') -ext["ossrhPassword"] = project.hasProperty('ossrhPassword') ? project.property('ossrhPassword') : System.getenv('OSSRH_PASSWORD') +ext["ossrhToken"] = project.hasProperty('ossrhToken') ? project.property('ossrhToken') : System.getenv('OSSRH_TOKEN') +ext["ossrhTokenPassword"] = project.hasProperty('ossrhTokenPassword') ? project.property('ossrhTokenPassword') : System.getenv('OSSRH_TOKEN_PASSWORD') ext["signing.keyId"] = project.hasProperty('signing.keyId') ? project.property('signing.keyId') : System.getenv('SONATYPE_GPG_ID') ext["signing.password"] = project.hasProperty('signing.password') ? project.property('signing.password') : System.getenv('SONATYPE_GPG_PASSWORD') ext["signing.secretKeyRingFile"] = project.hasProperty('signing.secretKeyRingFile') ? project.property('signing.secretKeyRingFile') : System.getenv('SONATYPE_GPG_FILE') @@ -8,8 +8,8 @@ ext["sonatypeStagingProfileId"] = project.hasProperty('sonatypeStagingProfileId' nexusPublishing { repositories { sonatype { - username = ossrhUsername - password = ossrhPassword + username = ossrhToken + password = ossrhTokenPassword nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) stagingProfileId = sonatypeStagingProfileId