-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (31 loc) · 907 Bytes
/
docsfx.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
38
39
name: Document Site Publish
on:
push:
branches: [ "master" ]
jobs:
publish-docs:
env:
BUILD_CONFIG: 'Release'
SOLUTION: 'FastActivator.sln'
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '8.0.x' ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration $BUILD_CONFIG
- run: dotnet tool update -g docfx
- run: docfx docfx_project/docfx.json
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docfx_project/_site