File tree Expand file tree Collapse file tree 2 files changed +9
-16
lines changed
Expand file tree Collapse file tree 2 files changed +9
-16
lines changed Original file line number Diff line number Diff line change 8080 run : |
8181 ./gradlew releaseAllSDKs -Ptype=sonatype
8282
83- - name : Close staging repositories
84- env :
85- CENTRAL_PORTAL_USERNAME : ${{ secrets.CENTRAL_PORTAL_USERNAME }}
86- CENTRAL_PORTAL_PASSWORD : ${{ secrets.CENTRAL_PORTAL_PASSWORD }}
87- REOWN_SONATYPE_STAGING_PROFILE_ID : ${{ secrets.REOWN_SONATYPE_STAGING_PROFILE_ID }}
88- WC_SONATYPE_STAGING_PROFILE_ID : ${{ secrets.WC_SONATYPE_STAGING_PROFILE_ID }}
89- run : |
90- ./gradlew closeReownStagingRepository closeWalletconnectStagingRepository
91-
9283 - name : Upload staging repositories to Central Portal and release
9384 env :
9485 CENTRAL_PORTAL_USERNAME : ${{ secrets.CENTRAL_PORTAL_USERNAME }}
Original file line number Diff line number Diff line change @@ -132,17 +132,19 @@ tasks.register("closeAndReleaseMultipleRepositories") {
132132 println (" Processing ${openRepos.size} open repositories and ${closedRepos.size} closed repositories" )
133133
134134 if (openRepos.isNotEmpty()) {
135- println (" WARNING: Found ${openRepos.size} open repositories. These must be closed before upload. " )
136- println ( " Open repos will be skipped. Run closeReownStagingRepository/closeWalletconnectStagingRepository first. " )
135+ println (" Uploading ${openRepos.size} open repositories to Central Portal " )
136+ uploadRepositoriesToPortal(openRepos )
137137 }
138138
139- if (closedRepos.isEmpty ()) {
140- throw RuntimeException ( " No closed staging repositories found. Ensure repos are closed before uploading. " +
141- " Run closeReownStagingRepository and closeWalletconnectStagingRepository first. " )
139+ if (closedRepos.isNotEmpty ()) {
140+ println ( " Uploading ${closedRepos.size} closed repositories to Central Portal " )
141+ uploadRepositoriesToPortal(closedRepos )
142142 }
143143
144- println (" Uploading ${closedRepos.size} closed repositories to Central Portal" )
145- uploadRepositoriesToPortal(closedRepos)
144+ if (openRepos.isEmpty() && closedRepos.isEmpty()) {
145+ println (" No repositories to upload to Portal" )
146+ return @doLast
147+ }
146148
147149 println (" Starting to wait for artifacts to be available on Maven Central..." )
148150 // Wait for artifacts to be available on Maven Central since we're using automatic publishing
You can’t perform that action at this time.
0 commit comments