Skip to content

Commit

Permalink
Merge pull request #26 from samansmink/fix-deploy-script
Browse files Browse the repository at this point in the history
fix deploy script
  • Loading branch information
samansmink authored Jul 19, 2023
2 parents b82dd0e + fcf14cc commit c16ff43
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 c16ff43

Please sign in to comment.