Fix Sonatype env variables
Build & Release / release-library (push) Successful in 1m34s Details

This commit is contained in:
John Ahlroos 2024-11-13 20:23:45 +01:00
parent dff5a6d369
commit c3236f3249
Signed by: john
GPG Key ID: 258D0F70DB84CD5D
2 changed files with 3 additions and 2 deletions

View File

@ -6,8 +6,8 @@ on:
env:
ORG_GRADLE_PROJECT_BUILD_VERSION: ${{ gitea.ref_name }}
ORG_GRADLE_PROJECT_DEVSOAP_GPG_KEY: ${{ secrets.GPG_DEVSOAP_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_DEVSOAP_GPG_PASSWORD: ${{ secrets.GPG_DEVSOAP_PASSPHRASE }}
ORG_GRADLE_PROJECT_DEVSOAP_GPG_KEY_BASE64: ${{ secrets.DEVSOAP_GPG_KEY_BASE64 }}
ORG_GRADLE_PROJECT_DEVSOAP_GPG_PASSWORD: ${{ secrets.DEVSOAP_GPG_PASSWORD }}
ORG_GRADLE_PROJECT_SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
RUNNER_TOOL_CACHE: /toolcache

View File

@ -191,6 +191,7 @@ tasks.register('generateChecksumsSha256') {
* Uploads the ZIP bundle to Maven Central via the Maven Central Portal API
*/
tasks.register('publishToMavenCentral', Exec) {
onlyIf { hasSignatureKey }
group 'publishing'
dependsOn(generateMavenCentralBundle)
executable "curl"