Skip to content

Commit 4379847

Browse files
committed
deploy to maven central
1 parent 5e5591e commit 4379847

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ jobs:
6565
echo "releaseVersion=${VERSION}" >> "$GITHUB_OUTPUT"
6666
echo "Using releaseVersion=${VERSION}"
6767
68-
- name: Publish to GitHub Packages
68+
- name: Publish to Maven Central
6969
env:
70-
GITHUB_ACTOR: ${{ github.actor }}
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
71+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
7272
run: |
7373
./gradlew --no-daemon \
7474
-PreleaseVersion='${{ steps.ver.outputs.releaseVersion }}' \
7575
clean build \
76-
publishMavenJavaPublicationToGitHubPackagesRepository
76+
publishToSonatype

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ signing {
141141
nexusPublishing {
142142
repositories {
143143
sonatype {
144-
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
145-
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
144+
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
145+
snapshotRepositoryUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
146146
username = (System.getenv("OSSRH_USERNAME") ?: findProperty("ossrhUsername"))?.toString()
147147
password = (System.getenv("OSSRH_PASSWORD") ?: findProperty("ossrhPassword"))?.toString()
148148
}

0 commit comments

Comments
 (0)