-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 869 Bytes
/
documentation.yml
File metadata and controls
36 lines (31 loc) · 869 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
name: Deploy and publish documentation
on:
push:
paths:
- 'Documentation/**.md'
- 'Documentation/**.yml'
- 'BattleBitAPI.Addons.CommandHandler/**.**'
- 'BattleBitAPI.Addons.Common/**.**'
- 'BattleBitAPI.Addons.EventHandler/**.**'
workflow_dispatch:
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- run: dotnet tool update -g docfx
- run: docfx Documentation/docfx.json
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.TOKEN }}
publish_dir: Documentation/_site