Skip to content

Commit ab1d7d9

Browse files
authored
Merge pull request #94 from fsharp/fix-fsdocs-invocation
Force fsdocs to roll forward to latest major on invocation
2 parents a54ba6b + bead2c1 commit ab1d7d9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/docs.yml

+5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ jobs:
4747
run: dotnet fsi ./build.fsx -t Build
4848
working-directory: ${{ env.FSF_DIR }}
4949
- name: Run fsdocs
50+
env:
51+
# allow roll forward to latest major version - this would happen for us if we invoked the fsdocs tool instead of invoking the binary directly
52+
DOTNET_ROLL_FORWARD: "LatestMajor"
53+
# need previews because .NET 8 is what's being used at runtime
54+
DOTNET_ROLL_FORWARD_TO_PRERELEASE: "1"
5055
run: dotnet FSharp.Formatting\src\fsdocs-tool\bin\Release\net6.0\fsdocs.dll build --sourcefolder ${{ env.FSHARP_DIR }}
5156
- name: Deploy
5257
uses: peaceiris/actions-gh-pages@v3

.github/workflows/pr.yml

+5
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,9 @@ jobs:
4444
run: dotnet fsi ./build.fsx -t Build
4545
working-directory: ${{ env.FSF_DIR }}
4646
- name: Run fsdocs
47+
env:
48+
# allow roll forward to latest major version - this would happen for us if we invoked the fsdocs tool instead of invoking the binary directly
49+
DOTNET_ROLL_FORWARD: "LatestMajor"
50+
# need previews because .NET 8 is what's being used at runtime
51+
DOTNET_ROLL_FORWARD_TO_PRERELEASE: "1"
4752
run: dotnet FSharp.Formatting/src/fsdocs-tool/bin/Release/net6.0/fsdocs.dll build --sourcefolder ${{ env.FSHARP_DIR }}

0 commit comments

Comments
 (0)