fix: 降级上传构建产物的版本
- 在`deploy-admin.yml`和`deploy-frontend.yml`中,将`actions/upload-artifact`的版本从`v4`降级至`v3` - 移除了压缩级别设置,确保兼容性和稳定性 此更改解决了上传构建产物时的版本兼容问题。
This commit is contained in:
@ -62,12 +62,11 @@ jobs:
|
|||||||
echo "📁 文件数量: $(find dist/ -type f | wc -l)"
|
echo "📁 文件数量: $(find dist/ -type f | wc -l)"
|
||||||
|
|
||||||
- name: 📦 打包构建产物
|
- name: 📦 打包构建产物
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: admin-dist-${{ github.sha }}
|
name: admin-dist-${{ github.sha }}
|
||||||
path: admin/dist/
|
path: admin/dist/
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
compression-level: 9
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
name: 🚀 部署到生产环境
|
name: 🚀 部署到生产环境
|
||||||
@ -241,7 +240,7 @@ jobs:
|
|||||||
bun --version >> security-report.md
|
bun --version >> security-report.md
|
||||||
|
|
||||||
- name: 📤 上传安全报告
|
- name: 📤 上传安全报告
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: security-report-${{ github.sha }}
|
name: security-report-${{ github.sha }}
|
||||||
path: admin/security-report.md
|
path: admin/security-report.md
|
||||||
|
|||||||
@ -61,12 +61,11 @@ jobs:
|
|||||||
run: bun run build
|
run: bun run build
|
||||||
|
|
||||||
- name: 📦 打包构建产物
|
- name: 📦 打包构建产物
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: frontend-dist-${{ github.sha }}
|
name: frontend-dist-${{ github.sha }}
|
||||||
path: frontend/out/
|
path: frontend/out/
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
compression-level: 9
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
name: 🚀 部署到生产环境
|
name: 🚀 部署到生产环境
|
||||||
|
|||||||
Reference in New Issue
Block a user