build: Set up publication to Maven Central/Sonatype OSSRH

This commit is contained in:
zml committed 2022-01-08 16:57:56 -08:00
1 parent 8931aed729
commit 881e58f9f7
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ jobs:
echo "PROJECT_VERSION=$VERSION" >> $GITHUB_ENV
- name: Publish with Gradle
if: "${{ runner.os == 'Linux' && ((env.STATUS != 'release' && github.event_name == 'push' && startsWith(github.ref, 'refs/heads/api-')) || (env.STATUS == 'release' && github.event_name == 'release')) }}"
run: ./gradlew -PforceSign=true publish
run: ./gradlew -PforceSign=true publish closeAndReleaseStagingRepository
env:
ORG_GRADLE_PROJECT_githubPackagesUsername: "${{ github.actor }}"
ORG_GRADLE_PROJECT_githubPackagesPassword: "${{ secrets.GITHUB_TOKEN }}"