From 0de05a80df5c9351c998d2de6438961283461013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=98=88=EC=9D=80?= <143199798+b1uey0@users.noreply.github.com> Date: Thu, 6 Nov 2025 12:38:28 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20deploy.yml=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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"