1616# >> Configure MINIO NATIVES SNAPSHOT
1717# OBJECTS_KEY=XXXXXX
1818# >> Configure SONATYPE RELEASE
19- # OSSRH_PASSWORD =XXXXXX
20- # OSSRH_USERNAME =XXXXXX
19+ # CENTRAL_PASSWORD =XXXXXX
20+ # CENTRAL_USERNAME =XXXXXX
2121# >> Configure SIGNING
2222# SIGNING_KEY=XXXXXX
2323# SIGNING_PASSWORD=XXXXXX
@@ -359,16 +359,16 @@ jobs:
359359 name : android-natives
360360 path : build/native
361361
362- - name : Rebuild the maven artifacts and deploy them to the Sonatype repository
362+ - name : Rebuild the maven artifacts and upload them to Sonatype's maven-snapshots repo
363363 run : |
364- if [ "${{ secrets.OSSRH_PASSWORD }}" = "" ];
364+ if [ "${{ secrets.CENTRAL_PASSWORD }}" = "" ];
365365 then
366- echo "Configure the following secrets to enable deployment to Sonatype:"
367- echo "OSSRH_PASSWORD, OSSRH_USERNAME , SIGNING_KEY, SIGNING_PASSWORD"
366+ echo "Configure the following secrets to enable uploading to Sonatype:"
367+ echo "CENTRAL_PASSWORD, CENTRAL_USERNAME , SIGNING_KEY, SIGNING_PASSWORD"
368368 else
369369 ./gradlew publishMavenPublicationToSNAPSHOTRepository \
370- -PossrhPassword =${{ secrets.OSSRH_PASSWORD }} \
371- -PossrhUsername =${{ secrets.OSSRH_USERNAME }} \
370+ -PcentralPassword =${{ secrets.CENTRAL_PASSWORD }} \
371+ -PcentralUsername =${{ secrets.CENTRAL_USERNAME }} \
372372 -PsigningKey='${{ secrets.SIGNING_KEY }}' \
373373 -PsigningPassword='${{ secrets.SIGNING_PASSWORD }}' \
374374 -PuseCommitHashAsVersionName=true \
@@ -390,7 +390,7 @@ jobs:
390390 with :
391391 fetch-depth : 1
392392
393- # Setup jdk 21 used for building Sonatype OSSRH artifacts
393+ # Setup jdk 21 used for building Sonatype artifacts
394394 - name : Setup the java environment
395395 uses : actions/setup-java@v4
396396 with :
@@ -416,20 +416,23 @@ jobs:
416416 name : android-natives
417417 path : build/native
418418
419- - name : Rebuild the maven artifacts and deploy them to Sonatype OSSRH
419+ - name : Rebuild the maven artifacts and upload them to Sonatype's Central Publisher Portal
420420 run : |
421- if [ "${{ secrets.OSSRH_PASSWORD }}" = "" ];
421+ if [ "${{ secrets.CENTRAL_PASSWORD }}" = "" ];
422422 then
423- echo "Configure the following secrets to enable deployment to Sonatype:"
424- echo "OSSRH_PASSWORD, OSSRH_USERNAME , SIGNING_KEY, SIGNING_PASSWORD"
423+ echo "Configure the following secrets to enable uploading to Sonatype:"
424+ echo "CENTRAL_PASSWORD, CENTRAL_USERNAME , SIGNING_KEY, SIGNING_PASSWORD"
425425 else
426- ./gradlew publishMavenPublicationToOSSRHRepository \
427- -PossrhPassword=${{ secrets.OSSRH_PASSWORD }} \
428- -PossrhUsername=${{ secrets.OSSRH_USERNAME }} \
429- -PsigningKey='${{ secrets.SIGNING_KEY }}' \
430- -PsigningPassword='${{ secrets.SIGNING_PASSWORD }}' \
431- -PuseCommitHashAsVersionName=true \
432- --console=plain --stacktrace
426+ ./gradlew publishMavenPublicationToCentralRepository \
427+ -PcentralPassword=${{ secrets.CENTRAL_PASSWORD }} \
428+ -PcentralUsername=${{ secrets.CENTRAL_USERNAME }} \
429+ -PsigningKey='${{ secrets.SIGNING_KEY }}' \
430+ -PsigningPassword='${{ secrets.SIGNING_PASSWORD }}' \
431+ -PuseCommitHashAsVersionName=true \
432+ --console=plain --stacktrace
433+ ./uploadToCentral.sh \
434+ -p '${{ secrets.CENTRAL_PASSWORD }}' \
435+ -u '${{ secrets.CENTRAL_USERNAME }}'
433436 fi
434437
435438 - name : Deploy to GitHub Releases
0 commit comments