Bump NuGet packages #90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
with: | |
token: ${{ secrets.DOCFX_API_KEY }} | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.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 |