From 12d910d877cf834c46e65411b8675a894923eb99 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 19 Aug 2024 16:25:20 -0700 Subject: [PATCH] automatically hide stable versions on release --- .github/workflows/jetbrains-release.yaml | 4 ++-- extensions/intellij/build.gradle.kts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index 714796bad..a9cd2e092 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -199,10 +199,10 @@ jobs: shell: bash run: | cd ../../extensions/intellij/build/distributions - echo "Builds:" + echo "Contents of distributions folder:" ls echo "---" - FILENAME=`ls *.zip` + FILENAME=`ls continue-intellij-extension-*.zip` unzip "$FILENAME" -d content echo "filename=${FILENAME%.????}" >> $GITHUB_OUTPUT diff --git a/extensions/intellij/build.gradle.kts b/extensions/intellij/build.gradle.kts index 8a0b2363c..ac38ac9fc 100644 --- a/extensions/intellij/build.gradle.kts +++ b/extensions/intellij/build.gradle.kts @@ -144,5 +144,8 @@ tasks { // Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more: // https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel channels.set(listOf(environment("RELEASE_CHANNEL").getOrElse("eap"))) + + // We always hide the stable releases until a few days of EAP have proven them stable + hidden = environment("RELEASE_CHANNEL").map { it == "stable" }.getOrElse(false) } }