Skip to content

Commit 3a2c3d2

Browse files
committed
update Maven Release process
1 parent 7b360bd commit 3a2c3d2

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/release-snapshot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Release
5050
run: ./gradlew --build-cache publishToSonatype
5151
env:
52-
CTP_OSS_USER: ${{ secrets.OSS_USER }}
53-
CTP_OSS_SECRET: ${{ secrets.OSS_SECRET }}
52+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
53+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
5454

5555
- run: rm -rf ~/.gradle/gradle.properties

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
- run: ./gradlew -Pversion=$REF_NAME clean test javadoc publishToSonatype closeAndReleaseSonatypeStagingRepository
4040
env:
4141
REF_NAME: ${{ github.ref_name }}
42-
CTP_OSS_USER: ${{ secrets.OSS_USER }}
43-
CTP_OSS_SECRET: ${{ secrets.OSS_SECRET }}
42+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
43+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4545
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
4646

gradle-scripts/publishing.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ def excludeProjects = [
2121
nexusPublishing {
2222
repositories {
2323
sonatype {
24-
username = System.getenv('CTP_OSS_USER')
25-
password = System.getenv('CTP_OSS_SECRET')
24+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
25+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
26+
username = System.getenv('SONATYPE_USERNAME')
27+
password = System.getenv('SONATYPE_PASSWORD')
2628
}
2729
}
2830
}

0 commit comments

Comments
 (0)