Skip to content

Commit 499036e

Browse files
authored
Upload zipped cli to S3 (#1457)
1 parent f569791 commit 499036e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build/cli.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ function build_and_upload() {
3636
if [ "$upload" == "true" ]; then
3737
echo "Uploading Cortex CLI to s3://$CLI_BUCKET_NAME/$CORTEX_VERSION/cli/$os/cortex"
3838
aws s3 cp cortex s3://$CLI_BUCKET_NAME/$CORTEX_VERSION/cli/$os/cortex --only-show-errors
39+
40+
zip cortex.zip cortex
41+
echo "Uploading zipped Cortex CLI to s3://$CLI_BUCKET_NAME/$CORTEX_VERSION/cli/$os/cortex.zip"
42+
aws s3 cp cortex.zip s3://$CLI_BUCKET_NAME/$CORTEX_VERSION/cli/$os/cortex.zip --only-show-errors
43+
rm cortex.zip
3944
fi
4045
echo "Done ✓"
4146
rm cortex

0 commit comments

Comments
 (0)