This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
forked from tiaringhio/Surreal.NET
-
Notifications
You must be signed in to change notification settings - Fork 6
65 lines (54 loc) · 1.62 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
59
60
61
62
63
64
65
name: Documentation
on:
push:
branches:
- "master"
- "doc/**"
paths-ignore:
- ".github/**"
- "tests/**"
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
defaults:
run:
shell: bash
jobs:
deploy:
name: Github Pages
runs-on: ubuntu-latest
steps:
- name: Initialize Cache
uses: actions/cache@v3
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget
- uses: actions/checkout@v2
- name: Initialize Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Initialize .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Initialize MkDocs
run: pip install mkdocs-material mkdocs-section-index
- name: Initialize .NET tools
run: |
dotnet tool install --global SourceLinkExtract
dotnet tool install --global SourceSymbolMapper
dotnet tool install --global XmlDocMdSymbols
- name: Build Release
run: dotnet build -f:net60 -c:Release -o:publish
- name: Generate Documentation Source
run: ./.github/generate_docs.sh
- name: Generate MKDocs 'nav' Entry
run: |
chmod +x ./.github/generate_docs_nav.py
./.github/generate_docs_nav.py >> mkdocs.yml
- name: Deploy Documentation
run: mkdocs gh-deploy --force