From e4023b822d9f18b3885262b317de66a92fd2e77a Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Fri, 13 Nov 2026 13:11:04 -0800 Subject: [PATCH] ci: attach only versioned archives to production github releases The dev and latest archives still upload to S3 for the install scripts and dev builds, and stay on dev-build and feature prereleases. Co-Authored-By: Claude --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index f5259ba2..1d9b79d6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -292,6 +292,10 @@ jobs: fi binaries=$(find << parameters.artifact_dir >>/slack_* -maxdepth 1 -not -type d) + if [ "<< parameters.production >>" != "false" ]; then + # Production releases attach versioned archives only. The dev and latest archives still upload to S3 from the workspace. + binaries=$(find << parameters.artifact_dir >>/slack_* -maxdepth 1 -not -type d -not -name "slack_cli_dev_*" -not -name "slack_cli_latest_*") + fi for binary in $binaries; do curl -X POST \ -H "Authorization: token $GITHUB_RELEASE_TOKEN" \