Skip to content

Commit 065cc4f

Browse files
added manual deployment(release) step for the Publisher Portal
1 parent e2eccce commit 065cc4f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/publishing2sonatype.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
run: |
3434
sed -i -e 's|.*sonatypeUsername.*| username = "${{ secrets.SUSER }}"|' ./build.gradle
3535
sed -i -e 's|.*sonatypePassword.*| password = "${{ secrets.SPASSWORD }}"|' ./build.gradle
36-
- name: Publish to Sonatype
36+
- name: Sonatype Publish
3737
run: |
38-
./gradlew publishJarPublicationToStagingRepository
38+
./gradlew publishJarPublicationToStagingRepository
39+
BEARER=$(printf "${secrets.SUSER}:${secrets.SPASSWORD}" | base64)
40+
curl --request POST \
41+
--verbose \
42+
--header "Authorization: Bearer ${BEARER}" \
43+
https://central.sonatype.com/manual/upload/defaultRepository/${secrets.SREPO_ID}

0 commit comments

Comments
 (0)