Merge pull request #235 from WeihanLi/dev #61
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: docs | |
on: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: windows-latest | |
steps: | |
# Check out the branch that triggered this workflow to the 'source' subdirectory | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.x | |
- name: install DocFX | |
run: "dotnet tool install -g docfx" | |
- name: Build docs | |
run: "docfx ./docs/docfx.json" | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/_site |