From 03b345325b7e9194914df78137788fa3b704db46 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Thu, 12 May 2022 14:26:10 +0100 Subject: [PATCH] [ci skip] [github actions] Update DocFx job --- .github/workflows/docfx.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docfx.yml b/.github/workflows/docfx.yml index 6b02fa1..6506a5f 100644 --- a/.github/workflows/docfx.yml +++ b/.github/workflows/docfx.yml @@ -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 \ No newline at end of file + args: docfx_project/docfx.json + - uses: maxheld83/ghpages@master + name: Publish Documentation on GitHub Pages + env: + BUILD_DIR: _site + GH_PAT: ${{ secrets.GH_PAT }}