Skip to content

Commit

Permalink
fix s3 url
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomontero committed May 31, 2024
1 parent 81bc77e commit 2992376
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions upload-files.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Set the base S3 bucket path
S3_BUCKET_PATH=${1}/openocd
S3_BUCKET_PATH=s3://${1}/openocd

# Function to upload files to S3
upload_to_s3() {
Expand All @@ -10,7 +10,8 @@
local dir_path="build/release/openocd-${platform}-${arch}"

if [ -d "$dir_path" ]; then
aws s3 cp "$dir_path" "${S3_BUCKET_PATH}/${platform}/${arch}" --recursive
aws s3 cp "$dir_path" "${S3_BUCKET_PATH}/${platform}/${arch}/" --recursive \
--cache-control "public, max-age=0"
else
echo "Directory $dir_path does not exist"
fi
Expand Down

0 comments on commit 2992376

Please sign in to comment.