-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (35 loc) · 1.04 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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/setup-dotnet@v4.0.0
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/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
publish_branch: gh-pages
force_orphan: true