Fix the check for publishing credentials

This commit is contained in:
Jorge Martín
2025-02-14 14:44:45 +01:00
parent 444600261c
commit af3920fce7
+1 -1
View File
@@ -33,7 +33,7 @@ publishing {
// `githubPackagesUsername` and `githubPackagesPassword` Gradle properties or alternatively // `githubPackagesUsername` and `githubPackagesPassword` Gradle properties or alternatively
// as `ORG_GRADLE_PROJECT_githubPackagesUsername` and `ORG_GRADLE_PROJECT_githubPackagesPassword` // as `ORG_GRADLE_PROJECT_githubPackagesUsername` and `ORG_GRADLE_PROJECT_githubPackagesPassword`
// environment variables // environment variables
if (!providers.gradleProperty("githubPackagesUsername").isPresent) { if (providers.gradleProperty("githubPackagesUsername").isPresent) {
credentials(PasswordCredentials::class) credentials(PasswordCredentials::class)
} else { } else {
// Assune we're in CI and try getting the GH env vars // Assune we're in CI and try getting the GH env vars