-
-
Notifications
You must be signed in to change notification settings - Fork 53
49 lines (41 loc) · 971 Bytes
/
ci-docs.yml
File metadata and controls
49 lines (41 loc) · 971 Bytes
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
name: ci-docs
on:
push:
branches: main
paths-ignore:
- 'samples/**'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.4
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v5.0.1
with:
dotnet-version: |
8.0.x
9.0.x
10.0.100
- name: Install DocFX
run: dotnet tool update -g docfx
- name: Add DocFX to PATH
run: echo "${HOME}/.dotnet/tools" >> $GITHUB_PATH
- name: Build documentation
run: docfx docs/docfx.json
- uses: actions/upload-pages-artifact@v3
with:
path: artifacts/_site
publish-docs:
needs: [build]
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
actions: read
pages: write
id-token: write
steps:
- id: deployment
uses: actions/deploy-pages@v4