A GitHub Action to build Docfx documentation.
Prerequisites:
- .NET SDK 6.0 or higher
- clFaster/docfx-setup-action
docfx-file-path
(optional): Specify this input if your docfx.json is not in the working directory.docfx-output-path
(optional): Defaults to _site in the folder where the docfx.json file is located.
- name: Build Documentation
uses: clFaster/docfx-build-action@v1
with:
docfx-file-path: "docs/docfx.json"
docfx-output-path: "output-path"
A complete example of a workflow that builds Docfx documentation.
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET Core 8.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.x"
- name: Setup DocFx
uses: clFaster/docfx-setup-action@v1
- name: Build Documentation
uses: clFaster/docfx-build-action@v1
with:
docfx-file-path: "docs/docfx.json"