From 566874fa8882ddb99a933b2f84cfe35149be1c41 Mon Sep 17 00:00:00 2001 From: "raoha.rh" Date: Wed, 25 Sep 2024 11:33:41 +0800 Subject: [PATCH] fix: clone without .html --- .github/workflows/aws-static.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/aws-static.yml b/.github/workflows/aws-static.yml index 950bc02d..c7883c0c 100644 --- a/.github/workflows/aws-static.yml +++ b/.github/workflows/aws-static.yml @@ -61,6 +61,9 @@ jobs: - name: Upload Build to S3 working-directory: ./client run: | + find out -type f -name '*.html' | while read file; do + cp "$file" "${file%.html}" + done aws s3 sync ./out s3://${{ env.S3_BUCKET }} --content-type 'text/html'