1 parent 368016e commit fe81c69Copy full SHA for fe81c69
1 file changed
.github/workflows/docs.yml
@@ -19,7 +19,7 @@ jobs:
19
environment:
20
name: github-pages
21
url: ${{ steps.deployment.outputs.page_url }}
22
- runs-on: ubuntu-slim
+ runs-on: windows-latest
23
steps:
24
- uses: actions/checkout@v4
25
@@ -32,9 +32,11 @@ jobs:
32
run: dotnet restore HelpSense.sln
33
34
- name: Install DocFX
35
- run: |
36
- dotnet tool install -g docfx
37
- echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
+ run: dotnet tool install -g docfx
+
+ # 将 .NET 工具目录加入 PATH,以便直接调用 docfx 命令
38
+ - name: Add dotnet tools to PATH
39
+ run: echo "$env:USERPROFILE\.dotnet\tools" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
40
41
- name: Build Documentation
42
run: docfx docs/docfx.json
0 commit comments