Skip to content

Commit 1ea2a0e

Browse files
zimegClaude
andauthored
ci: attach only versioned archives to production GitHub releases (#786)
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
1 parent 1d0b858 commit 1ea2a0e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎.circleci/config.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ jobs:
292292
fi
293293
294294
binaries=$(find << parameters.artifact_dir >>/slack_* -maxdepth 1 -not -type d)
295+
if [ "<< parameters.production >>" != "false" ]; then
296+
# Production releases attach versioned archives only. The dev and latest archives still upload to S3 from the workspace.
297+
binaries=$(find << parameters.artifact_dir >>/slack_* -maxdepth 1 -not -type d -not -name "slack_cli_dev_*" -not -name "slack_cli_latest_*")
298+
fi
295299
for binary in $binaries; do
296300
curl -X POST \
297301
-H "Authorization: token $GITHUB_RELEASE_TOKEN" \

0 commit comments

Comments
 (0)