Skip to content

Deploy Documentation #14

Deploy Documentation

Deploy Documentation #14

Workflow file for this run

name: Deploy Documentation
on:
push:
tags: ['v*']
workflow_dispatch:
permissions:
actions: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Restore
run: dotnet restore DataNormalizer.sln
- name: Build
run: dotnet build DataNormalizer.sln --no-restore
- name: Check formatting
run: dotnet tool restore && dotnet csharpier check .
- name: Test
run: dotnet test DataNormalizer.sln --no-build
deploy-docs:
needs: checks
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Restore tools
run: dotnet tool restore
- name: Restore NuGet packages
run: dotnet restore src/DataNormalizer/DataNormalizer.csproj
- name: Build documentation
run: dotnet docfx docs/docfx.json
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: docs/_site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5