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
committed by Jakub Chrzanowski
parent d467a21aeb
commit 74dc4e3edb
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" })
}
}