1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-23 00:38:47 +00:00

[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

View File

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