Skip to content

chore: migrate to docfx #72

chore: migrate to docfx

chore: migrate to docfx #72

name: Build Docfx Documentation
on:
pull_request:
types: [opened, synchronize, reopened, closed]
push:
branches:
- main
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
actions: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-docfx:
name: Build Docfx
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
submodules: true
- name: Dotnet Setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- run: dotnet tool update -g docfx
- run: docfx docfx.json
- name: Upload Docfx Documentation to Github Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: _site