Skip to content

Commit

Permalink
meta: publishing updates
Browse files Browse the repository at this point in the history
  • Loading branch information
testersen committed Jun 5, 2024
1 parent 25c2491 commit ecc03fc
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ repositories.mavenCentral()
kotlin.jvmToolchain(17)

repositories {
gradlePluginPortal()
mavenCentral()
}

Expand All @@ -31,3 +30,19 @@ gradlePlugin {
}
}
}

publishing {
repositories {
gradlePluginPortal()
if (System.getenv("GITHUB_ACTIONS") == "true") {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/${System.getenv("GITHUB_REPOSITORY")}")
credentials {
username = System.getenv("GITHUB_ACTOR") ?: System.getenv("GPR_ACTOR") ?: System.getProperty("gpr.actor")
password = System.getenv("GITHUB_TOKEN") ?: System.getenv("GPR_TOKEN") ?: System.getProperty("gpr.token")
}
}
}
}
}

0 comments on commit ecc03fc

Please sign in to comment.