16
16
# >> Configure MINIO NATIVES SNAPSHOT
17
17
# OBJECTS_KEY=XXXXXX
18
18
# >> Configure SONATYPE RELEASE
19
- # OSSRH_PASSWORD =XXXXXX
20
- # OSSRH_USERNAME =XXXXXX
19
+ # CENTRAL_PASSWORD =XXXXXX
20
+ # CENTRAL_USERNAME =XXXXXX
21
21
# >> Configure SIGNING
22
22
# SIGNING_KEY=XXXXXX
23
23
# SIGNING_PASSWORD=XXXXXX
@@ -359,16 +359,16 @@ jobs:
359
359
name : android-natives
360
360
path : build/native
361
361
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
363
363
run : |
364
- if [ "${{ secrets.OSSRH_PASSWORD }}" = "" ];
364
+ if [ "${{ secrets.CENTRAL_PASSWORD }}" = "" ];
365
365
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"
368
368
else
369
369
./gradlew publishMavenPublicationToSNAPSHOTRepository \
370
- -PossrhPassword =${{ secrets.OSSRH_PASSWORD }} \
371
- -PossrhUsername =${{ secrets.OSSRH_USERNAME }} \
370
+ -PcentralPassword =${{ secrets.CENTRAL_PASSWORD }} \
371
+ -PcentralUsername =${{ secrets.CENTRAL_USERNAME }} \
372
372
-PsigningKey='${{ secrets.SIGNING_KEY }}' \
373
373
-PsigningPassword='${{ secrets.SIGNING_PASSWORD }}' \
374
374
-PuseCommitHashAsVersionName=true \
@@ -390,7 +390,7 @@ jobs:
390
390
with :
391
391
fetch-depth : 1
392
392
393
- # Setup jdk 21 used for building Sonatype OSSRH artifacts
393
+ # Setup jdk 21 used for building Sonatype artifacts
394
394
- name : Setup the java environment
395
395
uses : actions/setup-java@v4
396
396
with :
@@ -416,20 +416,23 @@ jobs:
416
416
name : android-natives
417
417
path : build/native
418
418
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
420
420
run : |
421
- if [ "${{ secrets.OSSRH_PASSWORD }}" = "" ];
421
+ if [ "${{ secrets.CENTRAL_PASSWORD }}" = "" ];
422
422
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"
425
425
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 }}'
433
436
fi
434
437
435
438
- name : Deploy to GitHub Releases
0 commit comments