Skip to content

Commit 034a31f

Browse files
committed
Update workflow to use new Central Publishing Portal API
1 parent 2383aa7 commit 034a31f

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/maven-central.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,6 @@ jobs:
7575
</settings>
7676
EOF
7777
78-
- name: Verify Sonatype Credentials
79-
run: |
80-
echo "Verifying Sonatype credentials..."
81-
echo "Username: ${{ secrets.OSSRH_USERNAME_TOKEN }}"
82-
echo "Password length: ${#OSSRH_PASSWORD_TOKEN}"
83-
84-
# Test connection to Sonatype
85-
curl -v -u "${{ secrets.OSSRH_USERNAME_TOKEN }}:${{ secrets.OSSRH_PASSWORD_TOKEN }}" \
86-
https://central.sonatype.com/api/internal/repository/status
87-
8878
- name: Build and Publish
8979
env:
9080
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME_TOKEN }}
@@ -98,7 +88,7 @@ jobs:
9888
-Dgpg.keyname=${{ secrets.GPG_KEYNAME }} \
9989
-Dgpg.useagent=true \
10090
-Dmaven.test.failure.ignore=false \
101-
-DaltDeploymentRepository=ossrh::default::https://central.sonatype.com/api/internal/repository/maven-central/ \
91+
-DaltDeploymentRepository=ossrh::default::https://central.sonatype.com/api/v1/publisher/upload \
10292
-DrepositoryId=ossrh \
10393
-Dusername=${{ secrets.OSSRH_USERNAME_TOKEN }} \
10494
-Dpassword=${{ secrets.OSSRH_PASSWORD_TOKEN }} \

0 commit comments

Comments
 (0)