fix: update cache control argument handling for S3 sync #38
1 changed files with 3 additions and 3 deletions
|
|
@ -97,12 +97,12 @@ runs:
|
|||
fi
|
||||
|
||||
# Bulk sync remaining files; versioned builds get immutable cache headers
|
||||
CACHE_CONTROL_ARG=""
|
||||
CACHE_CONTROL_ARG=()
|
||||
if [[ "${INPUT_VERSIONING}" == "true" ]]; then
|
||||
CACHE_CONTROL_ARG="--cache-control 'public, max-age=31536000, immutable'"
|
||||
CACHE_CONTROL_ARG=("--cache-control" "public, max-age=31536000, immutable")
|
||||
fi
|
||||
|
||||
aws s3 sync "${INPUT_DIST_DIR}" "s3://${INPUT_S3_BUCKET_NAME}" $CACHE_CONTROL_ARG "${EXCLUDE_ARGS[@]}"
|
||||
aws s3 sync "${INPUT_DIST_DIR}" "s3://${INPUT_S3_BUCKET_NAME}" "${CACHE_CONTROL_ARG[@]}" "${EXCLUDE_ARGS[@]}"
|
||||
|
||||
- name: Clean up old versioned static builds
|
||||
if: ${{ inputs.versioning == 'true' }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue