Skip to content

Commit 0e6b626

Browse files
torseldenTor Seldénelinohlsson
authored
Fix docs workflow by using modern docfx tool and .NET 10 SDK (#550)
The docs CI failed because the outdated Chocolatey docfx and .NET 6 SDK could not load the .NET 10 projects (XMakeElements type initializer error). Switch to the docfx .NET global tool and install the .NET 10 SDK. Fixes #549 Co-authored-by: Tor Seldén <tor.selden@activesolution.se> Co-authored-by: Elin Fokine <elin.ohlsson@outlook.com>
1 parent 9c6f0f2 commit 0e6b626

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/docs.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,15 @@ jobs:
2323
runs-on: windows-latest
2424

2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v4
2727

28-
- name: Setup .NET 6.0
29-
uses: actions/setup-dotnet@v1
28+
- name: Setup .NET
29+
uses: actions/setup-dotnet@v4
3030
with:
31-
dotnet-version: 6.0.x
31+
dotnet-version: 10.0.x
3232

3333
- name: Setup DocFX
34-
uses: crazy-max/ghaction-chocolatey@v1
35-
with:
36-
args: install docfx
34+
run: dotnet tool update -g docfx
3735

3836
- name: Copy *.md to docs
3937
run: Copy-Item -Path ./*.md -Destination ./docs/articles

0 commit comments

Comments
 (0)