Skip to content

Commit

Permalink
fix: publish all-editor-plugins.zip to artifacts.itemis.cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
slisson committed Dec 6, 2024
1 parent 0db7399 commit 5fddcc1
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ subprojects {
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") }
mavenCentral()
}
}

allprojects {
publishing {
repositories {
if (project.hasProperty("artifacts.itemis.cloud.user")) {
Expand Down Expand Up @@ -166,20 +168,6 @@ val packageAllPlugins by tasks.registering(Zip::class) {

// publish all-editor-plugins.zip to GitHub packages to make it appear on the releases page
publishing {
repositories {
val gprUser = project.findProperty("gpr.user") as? String ?: System.getenv("GITHUB_ACTOR")
val gprToken = project.findProperty("gpr.key") as? String ?: System.getenv("GITHUB_TOKEN")
if (gprUser.isNotBlank() && gprToken.isNotBlank()) {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/modelix/modelix.text-editor")
credentials {
username = gprUser
password = gprToken
}
}
}
}
publications {
create<MavenPublication>("maven") {
artifactId = "all-editor-plugins"
Expand Down

0 comments on commit 5fddcc1

Please sign in to comment.