-
-
Notifications
You must be signed in to change notification settings - Fork 47
31 lines (28 loc) · 832 Bytes
/
docfx.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
name: Github Pages
on:
workflow_dispatch:
push:
paths-ignore:
- '**/*'
- '!.github/workflows/docfx.yml'
- '!docs/docfx_project/**'
- '!src/**/*.csproj'
- '!src/**/*.cs'
branches:
- 'main'
jobs:
publish-docs:
if: github.ref == 'refs/heads/main' && github.repository == 'christianhelle/refitter'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: dotnet tool update -g docfx
- run: docfx docs/docfx_project/docfx.json
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.PAT }}
external_repository: refitter/refitter.github.io
publish_dir: docs/docfx_project/_site
publish_branch: main