Skip to content

Commit b458be7

Browse files
authored
Additional workaround for central on release
1 parent 9b316c4 commit b458be7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/publish_snapshot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,11 @@ jobs:
160160
- name: Release build deploy
161161
if: github.event_name == 'release' && github.repository_owner == 'libgdx'
162162
run: ./gradlew build publish --info -PRELEASE -Psigning.gnupg.keyId=${{ secrets.GPG_KEYID }} -Psigning.gnupg.passphrase=${{ secrets.GPG_PASSPHRASE }} -Psigning.gnupg.keyName=${{ secrets.GPG_KEYID }}
163+
164+
- name: Trigger manual upload to Central Repository
165+
if: github.event_name == 'release' && github.repository_owner == 'libgdx'
166+
run: |
167+
curl -X POST \
168+
-H "Authorization: Bearer $(echo -n '${{ secrets.NEXUS_USERNAME }}:${{ secrets.NEXUS_PASSWORD }}' | base64)" \
169+
-H "Content-Type: application/json" \
170+
https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/com.badlogicgames

0 commit comments

Comments
 (0)