Skip to content

Docs

Docs #5

Workflow file for this run

name: Docs
on:
release:
types: [published]
branches: ["master"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
gen_doc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Install DocFx
run: dotnet tool install -g docfx
- name: Gen Docs
working-directory: ./docs
run: docfx
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./docs/site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: gen_doc
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1