diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml
index c723914a..b30cc27f 100644
--- a/.github/workflows/beta-release.yml
+++ b/.github/workflows/beta-release.yml
@@ -11,8 +11,8 @@ jobs:
profile: maven-central
tag: 'beta'
secrets:
- server-username: ${{ secrets.OSSRH_USERNAME }}
- server-password: ${{ secrets.OSSRH_PASSWORD }}
+ server-username: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_USERNAME }}
+ server-password: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_PASSWORD }}
gpg-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 855b7b4c..76dda879 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -11,8 +11,8 @@ jobs:
profile: maven-central
tag: 'public'
secrets:
- server-username: ${{ secrets.OSSRH_USERNAME }}
- server-password: ${{ secrets.OSSRH_PASSWORD }}
+ server-username: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_USERNAME }}
+ server-password: ${{ secrets.CENTRAL_PUBLISHER_PORTAL_PASSWORD }}
gpg-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
skyflow-credentials: ${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
diff --git a/pom.xml b/pom.xml
index 832fd901..df054845 100644
--- a/pom.xml
+++ b/pom.xml
@@ -263,25 +263,25 @@
maven-central
- ossrh
- https://s01.oss.sonatype.org/service/local/staging/deploy/maven2
+ central
+ https://central.sonatype.com/api/v1/publisher/upload
- ossrh
- https://s01.oss.sonatype.org/content/repositories/snapshots
+ central-snapshots
+ https://central.sonatype.com/api/v1/publisher/upload
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.7
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.4.0
true
- ossrh
- https://s01.oss.sonatype.org/
- true
+ central
+ true
+ true