Skip to content

Build and Deploy DocFX Documentation #1

Build and Deploy DocFX Documentation

Build and Deploy DocFX Documentation #1

Workflow file for this run

name: Build and Deploy DocFX Documentation
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Install DocFX
run: dotnet tool install -g docfx
- name: Build Docs
run: docfx docs/docfx.json
- name: Upload to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: docs/_site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4