Build docs #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Builds and publishes the documentation website to gh-pages branch | |
name: Build docs | |
on: | |
workflow_dispatch: | |
jobs: | |
build_docs: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup .NET Core SDK | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 8.x | |
- name: Restore NuGet Packages | |
run: dotnet restore Bonsai.ML.sln | |
- name: Build Solution | |
run: dotnet build Bonsai.ML.sln -c 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 |