Build docs #24
Workflow file for this run
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: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
with: | |
submodules: true | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v4.0.0 | |
with: | |
dotnet-version: 7.x | |
- name: Restore dotnet tools | |
run: dotnet tool restore | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v2 | |
- name: Restore NuGet Packages & Build Solution | |
working-directory: docs | |
run: .\build_solutions.ps1 | |
- name: Setup Bonsai | |
working-directory: .bonsai | |
run: .\Setup.ps1 | |
- name: Build Documentation | |
working-directory: docs | |
run: .\build.ps1 | |
- name: Checkout gh-pages | |
uses: actions/checkout@v4.1.1 | |
with: | |
ref: gh-pages | |
path: gh-pages | |
- name: Publish to github pages | |
uses: peaceiris/actions-gh-pages@v3.9.3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/_site | |
force_orphan: true |