Skip to content

Update: publish-docfx #22

Update: publish-docfx

Update: publish-docfx #22

Workflow file for this run

name: Publish DocFX
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup DocFX
shell: cmd
run: choco install docfx -y
- name: Install dependencies
run: dotnet restore
- name: Run DocFX
shell: cmd
run: choco install docfx -y
continue-on-error: false
- uses: actions/upload-artifact@v3
with:
name: dotnet_doc
path: docs/_site
- uses: actions/upload-pages-artifact@v1
with:
path: docs/_site
deploy:
needs: build
runs-on: ubuntu-latest
timeout-minutes: 5
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- uses: actions/deploy-pages@v1
id: deployment