diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4c7adaa65..00b16c8d3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,7 +38,7 @@ jobs: # Runs upload, and then closes & releases the repository - name: Publish to MavenCentral - run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseStagingRepository + run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository env: OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} diff --git a/scripts/publish-mavencentral.gradle b/scripts/publish-mavencentral.gradle index 5c14d3cfb..5148962fc 100644 --- a/scripts/publish-mavencentral.gradle +++ b/scripts/publish-mavencentral.gradle @@ -101,7 +101,7 @@ afterEvaluate { } repositories { maven { - name = "devjahir" + name = "sonatype" url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" credentials {