Skip to content

Build docs

Build docs #5

Workflow file for this run

# Builds and publishes the documentation website
name: Build docs
on:
workflow_dispatch:
concurrency:
group: docs
cancel-in-progress: true
permissions:
# Both required by actions/deploy-pages
pages: write
id-token: write
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Setup DocFX
run: dotnet tool restore
- name: Setup Bonsai
working-directory: .bonsai
run: ./Setup.ps1
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Build Documentation
working-directory: docs
run: ./build.ps1
- name: Upload GitHub Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/_site
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4