Merge pull request #181 from WeihanLi/dev #46
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 | |
# - dev | |
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@v3 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
8.0.x | |
- name: install DocFX | |
run: "dotnet tool install -g docfx" | |
# - name: output current dir | |
# run: "dir" | |
- 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 |