-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1016 Bytes
/
Copy pathdocs.yml
File metadata and controls
41 lines (37 loc) · 1016 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
name: Docs
on:
workflow_call:
workflow_dispatch:
permissions:
contents: write
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: false
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up .NET SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Install DocFX
id: docfx-cache
uses: actions/cache@v6
with:
path: ~/.dotnet/tools
key: docfx-${{ runner.os }}-v3
- name: dotnet tool install docfx
if: steps.docfx-cache.outputs.cache-hit != 'true'
run: dotnet tool install -g docfx
- name: Build documentation site
run: docfx docs/docfx.json
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: docs/_site
force_orphan: true