Skip to content

Document

Document #12

Workflow file for this run

name: Document
on:
workflow_run:
workflows:
- Release
types:
- completed
workflow_dispatch:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
- name: Checkout Repository
uses: actions/checkout@v4
- name: Update DocFX
run: dotnet tool update -g docfx
- name: Update Documentation
run: docfx ./docfx.json
- name: Commit Documentation
run: |
git config user.name "$(git log -n 1 --pretty=format:%an)"
git config user.email "$(git log -n 1 --pretty=format:%ae)"
git add --force ./documentation/latest
git commit -m "Updating the documentation for the commit: $(git log -n 1 --pretty=format:%H)"
git push