Skip to content

Commit d1b8f1b

Browse files
fix(ci): scope docs publishing build (#134)
Limit the docs workflow build step to the projects referenced by docs/docfx.json so Publish docs does not fail on unrelated solution build issues before DocFX runs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 960e87e commit d1b8f1b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ jobs:
2929
dotnet-version: 9.x
3030

3131
- run: dotnet tool update -g docfx
32-
- run: dotnet build -c Release
32+
- name: Build DocFX source projects
33+
run: |
34+
# Keep this list in sync with docs/docfx.json metadata.src.files.
35+
dotnet build src/PatternKit.Core/PatternKit.Core.csproj -c Release
36+
dotnet build src/PatternKit.Generators.Abstractions/PatternKit.Generators.Abstractions.csproj -c Release
3337
- run: docfx metadata docs/docfx.json
3438
- run: docfx build docs/docfx.json
3539

0 commit comments

Comments
 (0)