@@ -3,9 +3,9 @@ name: docs
33on :
44 push :
55 paths :
6- - ' docfx/**'
7- - ' src/ClashOfClans/**'
8- - ' src/ClashOfClans.Models/**'
6+ - " docfx/**"
7+ - " src/ClashOfClans/**"
8+ - " src/ClashOfClans.Models/**"
99 branches :
1010 - develop
1111
@@ -14,32 +14,32 @@ jobs:
1414 runs-on : windows-latest
1515
1616 steps :
17- - run : git config --global user.name ${env:GITHUB_ACTOR}
18- - run : git config --global user.email ${env:GITHUB_ACTOR}@users.noreply.github.com
19-
20- - uses : actions/checkout@v3
21- with :
22- token : ${{ secrets.DOCFX_API_KEY }}
23- - uses : actions/setup-dotnet@v3
24- with :
25- dotnet-version : ' 6 .0.x'
26-
27- - name : Build with dotnet
28- run : dotnet build ./src/ClashOfClans/ClashOfClans.csproj
29-
30- - name : Setup DocFX
31- run : choco install docfx
32-
33- - name : Build with DocFX
34- working-directory : docfx
35- run : |
36- Remove-Item ../docs/ -Recurse
37- docfx
38-
39- - name : Stage all changes
40- run : git add -A
41-
42- - name : Update GitHub Pages
43- run : |
44- git commit -am "Update GitHub Pages"
45- git push
17+ - run : git config --global user.name ${env:GITHUB_ACTOR}
18+ - run : git config --global user.email ${env:GITHUB_ACTOR}@users.noreply.github.com
19+
20+ - uses : actions/checkout@v3
21+ with :
22+ token : ${{ secrets.DOCFX_API_KEY }}
23+ - uses : actions/setup-dotnet@v3
24+ with :
25+ dotnet-version : " 7 .0.x"
26+
27+ - name : Build with dotnet
28+ run : dotnet build ./src/ClashOfClans/ClashOfClans.csproj
29+
30+ - name : Setup DocFX
31+ run : choco install docfx
32+
33+ - name : Build with DocFX
34+ working-directory : docfx
35+ run : |
36+ Remove-Item ../docs/ -Recurse
37+ docfx
38+
39+ - name : Stage all changes
40+ run : git add -A
41+
42+ - name : Update GitHub Pages
43+ run : |
44+ git commit -am "Update GitHub Pages"
45+ git push
0 commit comments