From f1d7d0f24522199944f803914dc899ad0f111224 Mon Sep 17 00:00:00 2001 From: zihluwang Date: Mon, 5 May 2025 10:39:17 +0800 Subject: [PATCH] refactor: migrate to Central Publisher Portal --- .github/workflows/github-packages-publish.yml | 8 ++++++++ gradle.properties | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-packages-publish.yml b/.github/workflows/github-packages-publish.yml index 1032b73..fcc1294 100644 --- a/.github/workflows/github-packages-publish.yml +++ b/.github/workflows/github-packages-publish.yml @@ -69,3 +69,11 @@ jobs: - name: Publish to Maven Central run: ./gradlew publish + + - name: Create Deployment on Central Publisher Portal + run: | + curl -X 'POST' \ + 'https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/com.onixbyte?publishing_type=user_managed' \ + -H 'accept: */*' \ + -H 'Authorization: Bearer ${{ secrets.MAVEN_PORTAL_TOKEN }}' \ + -d '' diff --git a/gradle.properties b/gradle.properties index ac0191f..afc190a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,7 +15,7 @@ # limitations under the License. # -artefactVersion=2.1.0 +artefactVersion=2.1.2 projectUrl=https://onixbyte.com/JDevKit projectGithubUrl=https://github.com/OnixByte/JDevKit licenseName=The Apache License, Version 2.0