-
Notifications
You must be signed in to change notification settings - Fork 30
43 lines (36 loc) · 941 Bytes
/
github-pages.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
name: Docs
on:
push:
branches: [ master, docs-source ]
jobs:
generate-docs:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: master
- name: Checkout doc source
uses: actions/checkout@v3
with:
ref: docs-source
path: docs
# setup .NET
- name: Setup .NET
uses: actions/setup-dotnet@v3
# Install DocFX
- name: Setup DocFX
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install docfx
# Build and publish docs
- name: DocFX build
working-directory: docs
run: docfx docfx.json
continue-on-error: false
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
force_orphan: true