Skip to content

Upgrade to support .NET 7 & 8 #87

Upgrade to support .NET 7 & 8

Upgrade to support .NET 7 & 8 #87

Workflow file for this run

name: Docs
on:
push:
branches:
- main
paths:
- src/**
- docs/**
- .github/workflows/docs.yml
pull_request:
branches:
- main
paths:
- docs/**
- .github/workflows/docs.yml
workflow_dispatch:
jobs:
generate-docs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Setup .NET 7.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup DocFX
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install docfx
- name: Generate DocFX metadata
working-directory: docs
run: docfx metadata .\docfx.json
continue-on-error: false
- name: Build DocFX site
working-directory: docs
run: docfx .\docfx.json
continue-on-error: false
- name: Publish DocFX site
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
force_orphan: true