-
Notifications
You must be signed in to change notification settings - Fork 34
39 lines (30 loc) · 870 Bytes
/
docs.yml
File metadata and controls
39 lines (30 loc) · 870 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
name: Build and Deploy Docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v5
- name: Setup .NET ⚙️
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.x' # Use the .NET version your project uses
- name: Install DocFX 🛠️
run: dotnet tool update -g docfx
- name: Create index.md from README.md
run: cp README.md index.md
- name: Generate DocFx metadata
run: docfx metadata docfx.json
- name: Build Documentation 📖
run: docfx build docfx.json
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site