Skip to content

Commit 0c6f1a2

Browse files
committed
Fix: retrieve publish token
1 parent af98e57 commit 0c6f1a2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,13 @@ tasks {
131131
systemProperty("jb.privacy.policy.text", "<!--999.999-->")
132132
systemProperty("jb.consents.confirmation.enabled", "false")
133133
}
134+
135+
publishPlugin {
136+
dependsOn("patchChangelog")
137+
token.set(System.getenv("PUBLISH_TOKEN"))
138+
// pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
139+
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
140+
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
141+
channels.set(listOf(properties("pluginVersion").split('-').getOrElse(1) { "default" }.split('.').first()))
142+
}
134143
}

0 commit comments

Comments
 (0)