From e84d14a9ca12f61654a04bfca9ffaf085cb7386a Mon Sep 17 00:00:00 2001 From: Siwat Tansiri Date: Mon, 16 Dec 2024 16:09:29 +0700 Subject: [PATCH] cd: fix deploy command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ea4c2ac..5f78d21 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "benchmark": "DEBUG=Eleventy:Benchmark* npx @11ty/eleventy", "s3:sync": "aws s3 sync _site/ s3://pythonexpert-web/static", "cloudfront:clearCache": "aws cloudfront create-invalidation --distribution-id E1WZICBZJ43601 --path \"/*\" --profile dataadvantage-admin", - "deploy": "npm run s3:sync && npm run cloudfront:clearCache" + "deploy": "rm -rf _site && npm run build && npm run s3:sync && npm run cloudfront:clearCache" }, "author": { "name": "Data Advantage Co.,Ltd.",