Skip to content

Use the latest version of docfx #2

Use the latest version of docfx

Use the latest version of docfx #2

Workflow file for this run

name: Publish Docs
on:
push:
branches:
- docs
pull_request:
branches:
- docs
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core 8.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.x"
- name: Install DocFX
run: dotnet tool restore
- name: Build DocFX
run: dotnet docfx docs/docfx.json
- name: Deploy Live
if: github.ref == 'refs/heads/docs'
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site/
publish_branch: docs-live