diff --git a/.github/workflows/release-sdk.yml b/.github/workflows/release-sdk.yml index 281e2c344..7abab926a 100644 --- a/.github/workflows/release-sdk.yml +++ b/.github/workflows/release-sdk.yml @@ -53,8 +53,8 @@ jobs: - name: Publish to MavenCentral run: ./gradlew publishReleasePublicationToSonatypeRepository #--max-workers 1 closeAndReleaseRepository --info env: - OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} - OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + OSSRH_USERNAME: ${{ secrets.OSSRH_TOKEN_USER }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }} SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }} @@ -142,4 +142,4 @@ jobs: uses: actions/upload-artifact@v2-preview with: name: MetaAppDebug - path: samples/metaapp/build/outputs/apk/debug/metaapp-debug.apk \ No newline at end of file + path: samples/metaapp/build/outputs/apk/debug/metaapp-debug.apk diff --git a/scripts/publish-mavencentral.gradle b/scripts/publish-mavencentral.gradle index 0e725c2e4..3d1ce1597 100644 --- a/scripts/publish-mavencentral.gradle +++ b/scripts/publish-mavencentral.gradle @@ -49,8 +49,8 @@ if (secretPropsFile.exists()) { ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID') ext["signing.password"] = System.getenv('SIGNING_PASSWORD') ext["signing.secretKeyRingFile"] = rootDir.path + "/" + System.getenv('SIGNING_SECRET_KEY_RING_FILE') - ext["ossrhUsername"] = System.getenv('OSSRH_USERNAME') - ext["ossrhPassword"] = System.getenv('OSSRH_PASSWORD') + ext["ossrhUsername"] = System.getenv('OSSRH_TOKEN_USER') + ext["ossrhPassword"] = System.getenv('OSSRH_TOKEN_PASSWORD') } publishing { @@ -128,4 +128,4 @@ nexusStaging { signing { sign publishing.publications -} \ No newline at end of file +}