-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (33 loc) · 956 Bytes
/
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
# 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
defaults:
run:
working-directory: .\machinelearning
steps:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 7.x
- 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