Skip to content

Commit 265faf8

Browse files
committed
Publish to Github Packages
1 parent d5a8d50 commit 265faf8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ gradlePlugin {
9494
publishing {
9595
repositories {
9696
maven {
97-
name = "Artifactory"
98-
url = uri("https://prepo.sumoci.net/artifactory/plugins-release-local")
97+
name = "GitHubPackagesDestination"
98+
url = uri("https://maven.pkg.github.com/${System.getenv("GITHUB_REPOSITORY")}") //This will automatically publish to the current repo in Github Actions
9999
credentials {
100-
username = System.getProperty("artifactoryUser")
101-
password = System.getProperty("artifactoryPassword")
100+
username = project.findProperty("gpr.user") as String? ?: System.getenv("HS_GITHUB_PACKAGES_USER")
101+
password = project.findProperty("gpr.key") as String? ?: System.getenv("HS_GITHUB_PACKAGES_TOKEN")
102102
}
103103
}
104104
}

0 commit comments

Comments
 (0)