Skip to content

Commit dff7e69

Browse files
fix(ad-hoc): Update Maven publishing script and workflow (#312)
1 parent a3c1f15 commit dff7e69

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/create-release-and-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
./gradlew :ui-core:publishProductionReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --max-workers=1
4141
./gradlew :ui:publishProductionReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --max-workers=1
4242
env:
43-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
44-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
43+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
44+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
4545
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
4646
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
4747
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}

scripts/publish-root.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ ext["staging.project.id"] = ''
22
ext["staging.project.key"] = ''
33
ext["production.project.id"] = ''
44
ext["production.project.key"] = ''
5-
ext["ossrhUsername"] = ''
6-
ext["ossrhPassword"] = ''
5+
ext["sonatypeUsername"] = ''
6+
ext["sonatypePassword"] = ''
77
ext["sonatypeStagingProfileId"] = ''
88
ext["signing.keyId"] = ''
99
ext["signing.password"] = ''
@@ -20,8 +20,8 @@ if (localProperties.exists()) {
2020
} else {
2121
ext["production.project.id"] = System.getenv('TEST_PROJECT_ID')
2222
ext["production.project.key"] = System.getenv('TEST_PROJECT_KEY')
23-
ext["ossrhUsername"] = System.getenv('OSSRH_USERNAME')
24-
ext["ossrhPassword"] = System.getenv('OSSRH_PASSWORD')
23+
ext["sonatypeUsername"] = System.getenv('SONATYPE_USERNAME')
24+
ext["sonatypePassword"] = System.getenv('SONATYPE_PASSWORD')
2525
ext["sonatypeStagingProfileId"] = System.getenv('SONATYPE_STAGING_PROFILE_ID')
2626
ext["signing.keyId"] = System.getenv('SIGNING_KEY_ID')
2727
ext["signing.password"] = System.getenv('SIGNING_PASSWORD')
@@ -34,12 +34,12 @@ if (localProperties.exists()) {
3434
nexusPublishing {
3535
repositories {
3636
sonatype {
37-
username = ossrhUsername
38-
password = ossrhPassword
37+
username = sonatypeUsername
38+
password = sonatypePassword
3939
stagingProfileId = sonatypeStagingProfileId
4040
version = publishVersion
41-
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
42-
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
41+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
42+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)