Skip to content

Commit fe81c69

Browse files
authored
Update docs.yml
1 parent 368016e commit fe81c69

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/docs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
environment:
2020
name: github-pages
2121
url: ${{ steps.deployment.outputs.page_url }}
22-
runs-on: ubuntu-slim
22+
runs-on: windows-latest
2323
steps:
2424
- uses: actions/checkout@v4
2525

@@ -32,9 +32,11 @@ jobs:
3232
run: dotnet restore HelpSense.sln
3333

3434
- name: Install DocFX
35-
run: |
36-
dotnet tool install -g docfx
37-
echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
35+
run: dotnet tool install -g docfx
36+
37+
# 将 .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
3840

3941
- name: Build Documentation
4042
run: docfx docs/docfx.json

0 commit comments

Comments
 (0)