Skip to content

Commit f5c47e2

Browse files
committed
Publish to the Central Portal using a username/password
1 parent 5e263e5 commit f5c47e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/release-publish-ossrh.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,11 @@ jobs:
103103
104104
# Publish to Central Portal
105105
- name: Publish to Central Portal
106-
env:
107-
CENTRAL_TOKEN: ${{ secrets.CENTRAL_PORTAL_TOKEN }}
108106
run: |
109107
RESPONSE=$(curl --request POST \
110108
--verbose \
111-
--header 'Authorization: Bearer ${{ secrets.CENTRAL_PORTAL_TOKEN }}' \
112-
--form bundle=@build/deployment-bundle.zip \
109+
--user '${{ env.CENTRAL_USERNAME }}:${{ env.CENTRAL_PASSWORD }}' \
110+
--form bundle=@library/build/deployment-bundle.zip \
113111
https://central.sonatype.com/api/v1/publisher/upload?publishingType=AUTOMATIC)
114112
115113
echo "Response from Central Portal:"

0 commit comments

Comments
 (0)