Skip to content

Commit c7e97d7

Browse files
authored
refactor(ci): 优化构建文档步骤,添加构建时间和版本 (#872)
* ci: 重构预览构建工作流 * chore: 更新构建和发布工作流,调整输出目录和下载链接 * chore: 更新预览构建工作流的权限设置 * chore: 移除 Node.js 安装步骤中的缓存依赖路径 * chore: 更新构建工作流,增加 APK 存在性检查并延长构建环境变量文件保留时间 * chore: 更新工作流配置,调整超时时间和并行策略 * chore: 移除 Node.js 安装步骤中的缓存配置 * chore: 更新预览构建工作流,调整 fetch-depth 和 pnpm 版本,优化文档生成步骤 * chore: 更新预览构建和发布工作流,优化 APK 检查和环境变量处理 * chore: 更新预览发布工作流,优化构建成功和失败的处理逻辑 * chore: 更新 pnpm 版本至 v4 * ci: 优化 GitHub Actions 构建流程加速构建 * ci: 回退重构 * ci: 合并构建工作流并优化生成逻辑
1 parent b2dfdf1 commit c7e97d7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/preview-build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ jobs:
7373
echo "fix_version=$FIX" >> $GITHUB_OUTPUT
7474
echo "version=$VERSION" >> $GITHUB_OUTPUT
7575
76+
- name: Update assets files
77+
run: |
78+
VERSION="${{ steps.version.outputs.major_version }}.${{ steps.version.outputs.minor_version }}.${{ steps.version.outputs.fix_version }}"
79+
echo "$VERSION" > $GITHUB_WORKSPACE/tdesign-component/example/assets/version
80+
echo "$(date +%s%3N)" > $GITHUB_WORKSPACE/tdesign-component/example/assets/publish_time
81+
cat $GITHUB_WORKSPACE/tdesign-component/example/assets/version
82+
cat $GITHUB_WORKSPACE/tdesign-component/example/assets/publish_time
83+
7684
- name: Create build environment file
7785
run: |
7886
# 创建包含所有构建环境变量的文件

0 commit comments

Comments
 (0)