-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github pages deployment workflow
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# 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: 8.x | ||
|
||
- name: Setup DocFX | ||
run: dotnet tool restore | ||
|
||
- name: Setup Bonsai | ||
working-directory: .bonsai | ||
run: .\Setup.ps1 | ||
|
||
- name: Build Documentation | ||
run: .\build.ps1 | ||
|
||
- name: Checkout gh-pages | ||
uses: actions/[email protected] | ||
with: | ||
ref: gh-pages | ||
path: gh-pages | ||
- name: Publish to github pages | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: _site | ||
force_orphan: true |