-
Notifications
You must be signed in to change notification settings - Fork 72
27 lines (23 loc) · 933 Bytes
/
documentation.yml
File metadata and controls
27 lines (23 loc) · 933 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
name: Documentation
on: [push]
jobs:
build-and-publish-docfx:
runs-on: ubuntu-latest
if: github.repository == 'freezy/VisualPinball.Engine' && github.ref == 'refs/heads/master'
name: Build and publish documentation
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
name: Setup .NET SDK
with:
dotnet-version: 8.0.x
- name: Install DocFX
run: dotnet tool install --global docfx --version 2.78.5
- name: Build Documentation
run: docfx VisualPinball.Unity/Documentation~/docfx.json
# Publish generated site using GitHub Pages
- uses: maxheld83/ghpages@master
name: Publish Documentation on GitHub Pages
env:
BUILD_DIR: VisualPinball.Unity/Documentation~/_site # docfx's default output directory is _site
GH_PAT: ${{ secrets.GH_PAT }} # See https://github.com/maxheld83/ghpages