Note
This project is currently not actively maintained. If you've got patches, we'd be happy to accept them.
We recommend using the fork by NUnit, which fixes a lot of stuff: https://github.com/NUnit/docfx-action
A GitHub action to run DocFX and generate a documentation site.
jobs:
hello_world_job:
runs-on: ubuntu-latestname: A job to say hellosteps:
- uses: actions/checkout@v3# ...
- uses: nikeee/docfx-action@v1.0.0name: Build Documentationwith:
args: path/to/your/docfx.json# Publish generated site using GitHub Pages
- uses: maxheld83/ghpages@mastername: Publish Documentation on GitHub Pagesenv:
BUILD_DIR: _site # docfx's default output directory is _siteGH_PAT: ${{ secrets.GH_PAT }} # See https://github.com/maxheld83/ghpagesIn general, to run docfx <something>, you can use:
- uses: nikeee/docfx-action@v1.0.0with:
args: <something>