-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (35 loc) · 904 Bytes
/
docgen.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
name: API Documentation
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: "Make API Reference"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Fetching the source
with:
submodules: 'true'
ref: ${{ github.ref }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Setup DocFX
run: dotnet tool install --global docfx
- name: Generating Documentation
run: |
make
make doc
- name: Saving changes to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
commit_message: "Updated documentation to reflect latest changes"
personal_token: ${{ secrets.DOCGEN_TOKEN }}
publish_dir: ./docs/
publish_branch: gh-pages