Skip to content

Commit

Permalink
fix deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
samansmink committed Jul 19, 2023
1 parent b4449c2 commit fcf14cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/extension-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ set -e
ext="build/release/extension/$1/$1.duckdb_extension"

# compress extension binary
gzip < "${ext}" > "$1.duckdb_extension.gz"
gzip < "${ext}" > "$ext.gz"

# upload compressed extension binary to S3
aws s3 cp "$1.duckdb_extension.gz s3://$5/$1/$2/$3/$4/$1.duckdb_extension.gz" --acl public-read
aws s3 cp $ext.gz s3://$5/$1/$2/$3/$4/$1.duckdb_extension.gz --acl public-read

# upload to latest if copy_to_latest is set to true
if [[ $6 = 'true' ]]; then
aws s3 cp "$1.duckdb_extension.gz s3://$5/$1/latest/$3/$4/$1.duckdb_extension.gz" --acl public-read
fi
aws s3 cp $ext.gz s3://$5/$1/latest/$3/$4/$1.duckdb_extension.gz --acl public-read
fi

0 comments on commit fcf14cc

Please sign in to comment.