diff --git a/.octopus/deployment_process.ocl b/.octopus/deployment_process.ocl new file mode 100644 index 0000000..804703d --- /dev/null +++ b/.octopus/deployment_process.ocl @@ -0,0 +1,73 @@ +step "publish-to-jetbrains-marketplace" { + name = "Publish to Jetbrains Marketplace" + + action { + action_type = "Octopus.Script" + channels = ["release"] + environments = ["production"] + properties = { + Octopus.Action.Script.ScriptBody = <<-EOT + set -eu + + authHeader="Authorization: Bearer $(get_octopusvariable "jbHubPermanentToken")" + pluginId="$(get_octopusvariable "jbPackageId")" + filePath="$(get_octopusvariable "Octopus.Action.Package[Octopus.TeamCity.OpenTelemetry].PackageFilePath")" + + echo "#{Octopus.Release.Notes | MarkdownToHTML}" >> notes.txt + + channel="$(get_octopusvariable "jbChannel")" + if [ -z $channel ]; then + channel="Stable" + fi + curl -i -s --header "$authHeader" -F pluginId=$pluginId -F file=@$filePath -F channel=$channel -F "notes=