refactor: migrate to Central Publisher Portal

This commit is contained in:
zihluwang
2025-05-05 10:39:17 +08:00
parent 07f697c0ca
commit f1d7d0f245
2 changed files with 9 additions and 1 deletions
@@ -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 ''