Merge pull request #4 from harp-tech/register-tables #8
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: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout | |
with: | |
submodules: recursive | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3.2.0 | |
with: | |
dotnet-version: 7.x | |
- name: Custom Build Steps | |
run: .\build.ps1 | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v1 | |
- name: Restore NuGet Packages | |
run: msbuild -t:restore src\harp\Bonsai.Harp.sln | |
- name: Setup DocFX | |
run: dotnet tool restore | |
- name: Build Documentation | |
run: dotnet docfx docfx.json | |
- name: Checkout gh-pages | |
uses: actions/checkout@v2 | |
with: | |
ref: gh-pages | |
path: gh-pages | |
- name: Publish to github pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: _site | |
force_orphan: true |