From bfa4809d3409ebd706fc83f83e340a9355ac3478 Mon Sep 17 00:00:00 2001 From: YuleBest Date: Fri, 6 Feb 2026 01:43:10 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BF=AE=E5=A4=8D=E5=BF=AB=E7=85=A7?= =?UTF-8?q?=E5=8C=85=E8=A2=AB=E6=89=93=E5=8C=85=E4=B8=A4=E9=81=8D=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/snapshot.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snapshot.yaml b/.github/workflows/snapshot.yaml index 1c0ea75..4c404ea 100644 --- a/.github/workflows/snapshot.yaml +++ b/.github/workflows/snapshot.yaml @@ -38,7 +38,10 @@ jobs: echo "Generated Filename: $FILENAME" - # 打包外层,排除掉源码目录 template/template/,保留生成的 template/template.zip + # 4. 清理根目录下可能存在的旧 zip 文件(避免重复打包) + rm -f ./*.zip + + # 5. 打包外层,排除掉源码目录 template/template/,保留生成的 template/template.zip zip -r -9 "$FILENAME" . -x "*.git*" ".github*" "template/template/*" echo "ZIP_PATH=$FILENAME" >> $GITHUB_ENV