Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Publish Documentation

on:
push:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/publish-docs.yml"

workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: github-pages
cancel-in-progress: false

jobs:
build:
name: Build DocFX Site
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"

- name: Install DocFX
run: dotnet tool update --global docfx

- name: Configure GitHub Pages
uses: actions/configure-pages@v5

- name: Build documentation
run: docfx docs/docfx.json

- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: docs/_site

deploy:
name: Deploy GitHub Pages
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- name: Deploy GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ obj/
**/obj/
/.vs
/DataArc.EntityFrameworkCore.Demo.Benchmark/BenchmarkDotNet.Artifacts
/docs/_site
Loading
Loading