-
Notifications
You must be signed in to change notification settings - Fork 27
58 lines (46 loc) · 1.19 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Documentation
on:
release:
types: [published]
repository_dispatch:
types: [publish]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Install DocFX
uses: crazy-max/ghaction-chocolatey@v3
with:
args: install docfx
- name: Generate documentation
working-directory: docs
run: docfx docfx.json
continue-on-error: false
- name: Copy README.html -> index.html
run: cp docs/_site/README.html docs/_site/index.html
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: docs
path: docs/
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: docs
- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: _site