Skip to content

Build docs

Build docs #8

Workflow file for this run

# Builds and publishes the documentation website to gh-pages branch
name: Build docs
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
submodules: true
- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: 7.x
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Restore NuGet Packages
run: msbuild -t:restore src/Bonsai.Sleap.sln
- name: Build Solution
run: msbuild src/Bonsai.Sleap.sln /p:Configuration=Release
- name: Setup DocFX
run: dotnet tool restore
- name: Setup Bonsai
working-directory: .bonsai
run: ./Setup.ps1
- name: Build Documentation
working-directory: docs
run: ./build.ps1
- name: Publish to github pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
publish_branch: gh-pages
force_orphan: true