From a06be056456669dbf673cf051d2e5a6c98ff0601 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Tue, 24 Jan 2023 20:11:07 -0800 Subject: [PATCH] Attempt to fix GitHub packages token. --- build.gradle.kts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 393fe1a..a998b0d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -64,12 +64,17 @@ publishing { repositories { mavenLocal() + var githubPackagesToken = System.getenv("GITHUB_TOKEN") + if (githubPackagesToken == null) { + githubPackagesToken = project.findProperty("github.token") as String? + } + maven { name = "GitHubPackages" url = uri("https://maven.pkg.github.com/gaypizzaspecifications/concrete") credentials { - username = project.findProperty("github.username") as String? ?: "unknown" - password = project.findProperty("github.token") as String? ?: System.getenv("GITHUB_TOKEN") + username = project.findProperty("github.username") as String? ?: "gaypizzaspecifications" + password = githubPackagesToken } } }