[fix/update] Fix the plugin icon url in the patched `plugin.xml` and update the `publish` task

This commit is contained in:
Anas Elgarhy 2023-05-18 13:31:34 +03:00
parent 954dfabbdf
commit db571bcc9b
No known key found for this signature in database
GPG Key ID: 0501802A1D496528
1 changed files with 4 additions and 2 deletions

View File

@ -71,7 +71,9 @@ tasks {
throw GradleException("Plugin description section not found in README.md:\n$start ... $end")
}
subList(indexOf(start) + 1, indexOf(end))
}.joinToString("\n").let { markdownToHTML(it) }
}.joinToString("\n")
.replace("./assets/", "https://raw.githubusercontent.com/anas-elgarhy/Ayah-intellij/master/assets/")
.let { markdownToHTML(it) }
)
// Get the latest available change notes from the changelog file
@ -86,7 +88,7 @@ tasks {
}
publishPlugin {
dependsOn("patchChangelog")
dependsOn("patchChangelog", "patchPluginXml")
token.set(System.getenv("PUBLISH_TOKEN"))
// pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more: