Skip to content

feat(docs): migrate to mkdocs material with generated API reference #381

feat(docs): migrate to mkdocs material with generated API reference

feat(docs): migrate to mkdocs material with generated API reference #381

Workflow file for this run

name: CI/CD Pipeline
on:
pull_request:
branches: [ main ]
paths-ignore:
- "docs/**"
- "**.md"
- ".github/ISSUE_TEMPLATE/**"
- ".claude/**"
release:
types: [ published ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup .NET
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5
with:
dotnet-version: 10.0.x
source-url: https://nuget.pkg.github.com/Intility/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_AUTH_TOKEN }}
- name: Restore
run: dotnet restore --locked-mode
- name: Check formatting
run: |
dotnet tool restore
dotnet csharpier check .
- name: Test
run: dotnet test --configuration Release --verbosity normal --no-restore
publish:
if: github.event_name == 'release'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup .NET
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5
with:
dotnet-version: 10.0.x
source-url: https://nuget.pkg.github.com/Intility/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_AUTH_TOKEN }}
- name: Restore
run: dotnet restore --locked-mode
- name: Build and Pack
run: dotnet pack JsonApiToolkit/JsonApiToolkit.csproj -c Release --no-restore
- name: Publish to GitHub Packages
run: dotnet nuget push "JsonApiToolkit/bin/Release/*.nupkg" --api-key ${{
secrets.NUGET_AUTH_TOKEN }}