Skip to content

Commit 11dd296

Browse files
Close and release Sonatype staging repo after publish
publishToSonatype only uploads to staging. Need closeAndReleaseSonatypeStagingRepository to promote to Maven Central.
1 parent fb4e9ae commit 11dd296

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/manual-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
7676
PUBLISH_VERSION: ${{ steps.version.outputs.version }}
7777
run: |
78-
./gradlew publishToSonatype \
78+
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository \
7979
-PoverrideVersion="$PUBLISH_VERSION"
8080
8181
- name: Create GitHub Release

.github/workflows/sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
103103
PUBLISH_VERSION: ${{ steps.version.outputs.version }}
104104
run: |
105-
./gradlew publishToSonatype \
105+
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository \
106106
-PoverrideVersion="$PUBLISH_VERSION"
107107
108108
- name: Create GitHub Release

0 commit comments

Comments
 (0)