Skip to content

Generate Docs

Generate Docs #46

Workflow file for this run

name: Generate Docs
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
on:
workflow_dispatch:
workflow_run:
workflows: ["Release"]
types: [completed]
release:
types: [released]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
6.0.x
7.0.x
8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Build documentation
run: dotnet run -f net8.0 -c Release --no-build
working-directory: Docs/SuperLinq.Docs
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'Docs/SuperLinq.Docs/_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1