build(ci-cd): 添加构建时间环境变量支持
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 3m49s
CI/CD Pipeline / build-and-deploy (push) Successful in 4m3s

This commit is contained in:
严浩
2025-11-02 16:50:22 +08:00
parent 19aaddc4e2
commit 0d1a20d88d

View File

@@ -38,7 +38,9 @@ jobs:
run: pnpm run lint run: pnpm run lint
- name: 📦 构建项目 - name: 📦 构建项目
run: pnpm run build-only run: |
export VITE_APP_BUILD_TIME=$(date +"%Y-%m-%d %H:%M:%S")
pnpm run build-only
env: env:
VITE_APP_BUILD_COMMIT: ${{ github.sha }} VITE_APP_BUILD_COMMIT: ${{ github.sha }}