Skip to content

Commit 7dbc5d0

Browse files
committed
Force DocFX to use latest .NET runtime
1 parent 25c9aeb commit 7dbc5d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/azure-static-web-apps-nightly-docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ jobs:
3333
- name: Restore dotnet tools
3434
run: dotnet tool restore
3535

36+
# We force DocFX to use latest runtime (and latest SDK) by setting DOTNET_ROLL_FORWARD='LatestMajor' env var
3637
- name: Build docs with DocFX
3738
shell: pwsh
3839
run: |
3940
$env:GITHUB_ACTIONS='false'
41+
$env:DOTNET_ROLL_FORWARD='LatestMajor'
4042
dotnet docfx ./docfx_project/docfx.json
4143
4244
- name: Upload docs as artifact

0 commit comments

Comments
 (0)