Merge pull request #233 from CycloneDX/dependabot/nuget/xunit.runner.… #86
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: Publish documentation | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-documentation: | |
name: "Build documentation" | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.0.200' | |
- name: Download DocFX | |
run: | | |
wget -O docfx.zip https://github.com/dotnet/docfx/releases/download/v2.58.4/docfx.zip | |
unzip docfx.zip -d docfx/ | |
chmod +x docfx/docfx.exe | |
- name: Build documentation | |
run: | | |
docfx/docfx.exe docs/docfx.json | |
- name: Deploy documentation | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: docs/_site |