Document #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |