Skip to content

Commit e6b3bf9

Browse files
committed
feat: Try to fix publishing
1 parent c59a7bf commit e6b3bf9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/jnigen.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,11 @@ jobs:
160160
if: github.event_name == 'release' && github.repository_owner == 'libgdx'
161161
run: ./gradlew build publish -PRELEASE -Psigning.gnupg.keyId=${{ secrets.GPG_KEYID }} -Psigning.gnupg.passphrase=${{ secrets.GPG_PASSPHRASE }} -Psigning.gnupg.keyName=${{ secrets.GPG_KEYID }} -x test
162162

163+
- name: Trigger manual upload to Central Repository
164+
if: github.event_name == 'release' && github.repository_owner == 'libgdx'
165+
run: |
166+
curl -X POST \
167+
-H "Authorization: Bearer $(echo -n '${{ secrets.OSSRH_USERNAME }}:${{ secrets.OSSRH_PASSWORD }}' | base64)" \
168+
-H "Content-Type: application/json" \
169+
https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/com.badlogicgames
170+

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ val isReleaseBuild: Boolean
1212
get() = project.hasProperty("RELEASE")
1313

1414
val releaseRepositoryUrl: String
15-
get() = project.findProperty("RELEASE_REPOSITORY_URL")?.toString() ?: "https://ossrh-staging-api.central.sonatype.com/service/local/"
15+
get() = project.findProperty("RELEASE_REPOSITORY_URL")?.toString() ?: "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
1616

1717
val snapshotRepositoryUrl: String
1818
get() = project.findProperty("SNAPSHOT_REPOSITORY_URL")?.toString() ?: "https://central.sonatype.com/repository/maven-snapshots/"

0 commit comments

Comments
 (0)