Skip to content

Commit ec08cf4

Browse files
committed
fix: add cleanup step to remove Zone.Identifier files before artifact upload
1 parent 2c85ffd commit ec08cf4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,26 @@ jobs:
5757
env:
5858
NODE_ENV: production
5959

60+
- name: Clean problematic files
61+
run: |
62+
echo "🧹 Cleaning problematic files..."
63+
64+
# 删除 Zone.Identifier 文件
65+
find ./src/public -name "*:Zone.Identifier" -type f -delete
66+
find ./src/public -name "*.Zone.Identifier" -type f -delete
67+
68+
# 删除其他可能包含冒号的文件
69+
find ./src/public -name "*:*" -type f -delete
70+
71+
# 删除隐藏文件(可选)
72+
find ./src/public -name ".*" -type f -delete
73+
74+
# 删除 macOS 系统文件
75+
find ./src/public -name ".DS_Store" -type f -delete
76+
find ./src/public -name "Thumbs.db" -type f -delete
77+
78+
echo "✅ Problematic files cleaned"
79+
6080
- name: Test build output
6181
run: |
6282
if [ ! -d "public" ]; then

0 commit comments

Comments
 (0)