Skip to content

Commit dce7757

Browse files
committed
add POST request to workflow for upload to maven
1 parent 730906a commit dce7757

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ jobs:
3838
MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
3939
MAVEN_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
4040
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
41+
- name: Upload to Central Publisher Portal
42+
run: |
43+
AUTH=$(echo -n "${{ secrets.CENTRAL_USERNAME }}:${{ secrets.CENTRAL_PASSWORD }}" | base64)
44+
curl -X POST "https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/com.amazonaws.serverless" \
45+
-H "Authorization: Bearer $AUTH"

0 commit comments

Comments
 (0)