Set publish channel depending on the plugin version, i.e. 1.0.0-beta -> beta channel

This commit is contained in:
Jakub Chrzanowski
2020-07-06 14:27:26 +02:00
parent 407fa8cc10
commit ad32e26de5
3 changed files with 9 additions and 0 deletions

View File

@@ -107,5 +107,6 @@ tasks {
publishPlugin {
dependsOn("patchChangelog")
token(System.getenv("PUBLISH_TOKEN"))
channels(pluginVersion.split('-').getOrElse(1) { "default" })
}
}