[ci skip] [github actions] Update DocFx job

This commit is contained in:
Oliver Booth 2022-05-12 14:26:10 +01:00
parent a566058837
commit 03b345325b
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
1 changed files with 11 additions and 13 deletions

View File

@ -7,19 +7,17 @@ on:
branches: [ main ] branches: [ main ]
jobs: jobs:
build: docfx:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Publish Documentation
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v1
- name: Setup .NET Core - uses: nikeee/docfx-action@v1.0.0
uses: actions/setup-dotnet@v1 name: Build Documentation
with: with:
dotnet-version: 3.1.101 args: docfx_project/docfx.json
- name: Install DocFX - uses: maxheld83/ghpages@master
run: | name: Publish Documentation on GitHub Pages
curl -L https://github.com/dotnet/docfx/releases/latest/download/docfx.zip -o docfx.zip env:
unzip -d .docfx docfx.zip BUILD_DIR: _site
- name: Build documentation GH_PAT: ${{ secrets.GH_PAT }}
run: dotnet run .docfx/docfx.exe --project X10D.sln