Skip to content

Build docs

Build docs #30

Workflow file for this run

# Builds and publishes the documentation website to gh-pages branch
name: Build docs
on:
workflow_dispatch:
jobs:
build_solution:
uses: ./.github/workflows/build.yml
build_docs:
needs: build_solution
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
with:
submodules: true
- name: Restore cached build output
uses: actions/cache@v3
with:
key: ${{ needs.build_job.outputs.cache-key }}
path: |
src/bin/Release
src/*/bin/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/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
publish_branch: gh-pages
force_orphan: true