From db571bcc9b6355255f08e361ae3ed3ecfa62ca19 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Thu, 18 May 2023 13:31:34 +0300 Subject: [PATCH] [fix/update] Fix the plugin icon url in the patched `plugin.xml` and update the `publish` task --- build.gradle.kts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5975a85..86c4848 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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: