diff --git a/build.gradle.kts b/build.gradle.kts index 976e3717..319ab1ef 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -94,11 +94,11 @@ gradlePlugin { publishing { repositories { maven { - name = "Artifactory" - url = uri("https://prepo.sumoci.net/artifactory/plugins-release-local") + name = "GitHubPackagesDestination" + url = uri("https://maven.pkg.github.com/${System.getenv("GITHUB_REPOSITORY")}") //This will automatically publish to the current repo in Github Actions credentials { - username = System.getProperty("artifactoryUser") - password = System.getProperty("artifactoryPassword") + username = project.findProperty("gpr.user") as String? ?: System.getenv("HS_GITHUB_PACKAGES_USER") + password = project.findProperty("gpr.key") as String? ?: System.getenv("HS_GITHUB_PACKAGES_TOKEN") } } }