Skip to content

Commit 4165f5f

Browse files
authored
Merge pull request #297 from reown-com/fix/release-pipeline-close-staging
fix: remove broken close staging step from release pipeline
2 parents fe6a9b0 + 08d693a commit 4165f5f

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

.github/workflows/ci_release_artifacts.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,6 @@ jobs:
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 }}

build.gradle.kts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)