Skip to content

Generate documentation #9

Generate documentation

Generate documentation #9

Workflow file for this run

name: Generate documentation
on: workflow_dispatch
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
generate-documentation:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7
- name: Restore dependencies
run: dotnet restore .\Source\VersOne.Epub\VersOne.Epub.csproj
- name: Install DocFX
run: nuget install docfx.console -x
- name: Run DocFX
run: docfx.console\tools\docfx.exe Documentation\docfx.json
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './Documentation/docfx_output'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4