Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a22d298

Browse files
committed
fiddle with pipeline
1 parent 20665a2 commit a22d298

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
- name: Restore dependencies
2626
run: dotnet paket restore
2727
- name: Checkout fsharp master
28-
run: git clone https://github.com/dotnet/fsharp --depth 1 fsharp
28+
run: git clone https://github.com/dotnet/fsharp --depth 1 fsharp -b feature/docs
2929
- name: Build fsharp master
30-
run: cd fsharp && .\build
30+
run: cd fsharp && .\build -noVisualStudio
3131
- name: Checkout FSharp.Formatting master
32-
run: git clone https://github.com/dotnet/FSharp.Formatting --depth 1 FSharp.Formatting
32+
run: git clone https://github.com/dotnet/FSharp.Formatting --depth 1 FSharp.Formatting
3333
- name: Build FSharp.Formatting master
34-
run: cd FSharp.Formatting && .\build
34+
run: cd FSharp.Formatting && .\build -t Build
3535
- name: Run fsdocs
3636
run: FSharp.Formatting\src\FSharp.Formatting.CommandTool\bin\Release\netcoreapp3.1\fsdocs.exe build --sourcefolder fsharp
3737
- name: Deploy

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,13 @@ Change the `TargetPath` in our local `FSharp.Core.fsproj` if needed to picl up a
2727

2828
## CI Pipeline
2929

30-
This repo is published via GitHub Actions. On each push to master, `dotnet fornax build` is run, and the outputs (which are written to the `_public` directory by fornax) are pushed to the `gh-pages` branch. This repo is configured to host using GitHub Pages from this branch, so once the generated files are pushed the update is nearly-instant.
30+
This repo is published via GitHub Actions. On each push to master, the docs are built, and the outputs (which are written to the `output` directory by fsdocs) are pushed to the `gh-pages` branch. This repo is configured to host using GitHub Pages from this branch, so once the generated files are pushed the update is nearly-instant.
31+
32+
To build the very latest and freshest docs using the latest `fsdocs` tooling the CI does this:
33+
34+
1. build dotnet/fsharp `feature/docs` branch (where we assume latest doc updates have been pushed)
35+
36+
2. builds `FSharp.Formatting` master branch
37+
38+
3. Uses that `FSharp.Formatting` tool to build the docs for the FSharp.Core built in step 1
39+

0 commit comments

Comments
 (0)