feat: 更新 Playwright 工作流,增加以KB为单位的构建大小统计
Some checks failed
/ depcheck (push) Successful in 2m43s
/ build-and-deploy-to-vercel (push) Successful in 2m54s
/ lint-build-and-check (push) Successful in 3m1s
/ surge (push) Successful in 3m4s
/ playwright (push) Has been cancelled

This commit is contained in:
mini2024
2025-03-22 23:54:24 +08:00
parent d23fcd72c7
commit bee73670b7

View File

@ -23,8 +23,9 @@ jobs:
echo "📊 构建大小统计:"
echo "----------------------------------------"
echo "🔹 人类可读格式: $(du -sh dist | cut -f1)"
echo "🔹 以MB为单位: $(du -sm dist | cut -f1) MB"
echo "🔹 文件总数: $(find dist -type f | wc -l) 个文件"
echo "🔹 以MB为单位: $(du -sm dist | cut -f1) MB"
echo "🔹 以KB为单位: $(du -sk dist | cut -f1) KB"
echo "🔹 文件总数: $(find dist -type f | wc -l) 个文件"
echo "----------------------------------------"
- name: 部署到 Surge
id: surge_deploy