33 lines
588 B
YAML
33 lines
588 B
YAML
name: Generate Docs
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
|
|
- name: Install DocFX
|
|
run: dotnet tool install -g docfx
|
|
|
|
- name: Build Project
|
|
run: dotnet build -c Release
|
|
|
|
- name: Generate Docs
|
|
run: |
|
|
docfx init -q
|
|
docfx docfx.json
|
|
|
|
- name: Upload Docs
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: docs
|
|
path: _site |