-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (36 loc) · 1007 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: docs
on:
push:
paths:
- "docfx/**"
- "src/ClashOfClans/**"
- "src/ClashOfClans.Models/**"
branches:
- develop
jobs:
docfx:
runs-on: windows-latest
steps:
- run: git config --global user.name ${env:GITHUB_ACTOR}
- run: git config --global user.email ${env:GITHUB_ACTOR}@users.noreply.github.com
- uses: actions/checkout@v3
with:
token: ${{ secrets.DOCFX_API_KEY }}
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "7.0.x"
- name: Build with dotnet
run: dotnet build ./src/ClashOfClans/ClashOfClans.csproj
- name: Setup DocFX
run: choco install docfx
- name: Build with DocFX
working-directory: docfx
run: |
Remove-Item ../docs/ -Recurse
docfx
- name: Stage all changes
run: git add -A
- name: Update GitHub Pages
run: |
git commit -am "Update GitHub Pages"
git push