diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 423fd2f..8dc1962 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -49,14 +49,11 @@ jobs: [[ -n "$BUCKET" ]] [[ "$BUCKET" != s3://* ]] - aws s3 ls "s3://$BUCKET" >/dev/null + aws s3 cp "dist" "s3://$BUCKET" \ + --recursive \ + --exclude "index.html" \ + --cache-control "public, max-age=31536000, immutable" - aws s3 sync "dist" "s3://$BUCKET" \ - --delete \ - --cache-control "public, max-age=31536000, immutable" \ - --exclude "index.html" - - # HTML: no-cache aws s3 cp "dist/index.html" "s3://$BUCKET/index.html" \ --cache-control "no-cache, no-store, must-revalidate" \ --content-type "text/html"