mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-23 11:14:30 +08:00
fix(ci): 修复DocFX文档构建流程
- 将docfx命令拆分为metadata和build两个独立步骤 - 添加调试步骤以检查docfx输出目录结构 - 修复工作流中的路径问题确保构建正确执行
This commit is contained in:
parent
1f1f3dfd8a
commit
4d423b3c67
15
.github/workflows/publish-docs.yml
vendored
15
.github/workflows/publish-docs.yml
vendored
@ -77,7 +77,20 @@ jobs:
|
||||
- name: Build DocFX
|
||||
run: |
|
||||
export PATH="$PATH:$HOME/.dotnet/tools"
|
||||
docfx docfx/docfx.json
|
||||
cd docfx
|
||||
docfx metadata
|
||||
docfx build
|
||||
|
||||
- name: Debug DocFX output
|
||||
run: |
|
||||
echo "==== docfx directory ===="
|
||||
ls -la docfx || true
|
||||
|
||||
echo "==== _site directory ===="
|
||||
ls -la docfx/_site || echo "_site not found"
|
||||
|
||||
echo "==== _site content ===="
|
||||
find docfx/_site | head -n 50 || true
|
||||
|
||||
# 步骤 7:上传构建好的静态站点文件作为工件。
|
||||
- name: Upload Pages Artifact
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user