Skip to content

Commit 0deedf9

Browse files
fix: add recursive flag to aws cp call
1 parent fda5356 commit 0deedf9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/upload-to-s3.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ function uploadFile() {
4949
[ ! -d "$FILENAME_SRC" ] && echo "Directory $FILENAME_SRC does not exist." && exit 1
5050

5151
# shellcheck disable=SC2086
52-
aws s3 cp $DRY_RUN "$FILENAME_SRC" "s3://$AWS_S3_BUCKET_NAME/$BASE/$FILENAME_DST"
52+
aws s3 cp --recursive $DRY_RUN "$FILENAME_SRC" "s3://$AWS_S3_BUCKET_NAME/$BASE/$FILENAME_DST"
5353
}
5454

5555
# publish repo
56-
FILENAME_SRC="$SCRIPT_DIR/../update-site/target/repository/"
56+
FILENAME_SRC="$SCRIPT_DIR/../update-site/target/repository"
5757
FILENAME_DST="$RELEASE_CHANNEL"
5858
# shellcheck disable=SC2086
5959
uploadFile $FILENAME_SRC $FILENAME_DST $DRY_RUN

0 commit comments

Comments
 (0)