Skip to content

[增加]1. 增加Docfx 生成 #3

[增加]1. 增加Docfx 生成

[增加]1. 增加Docfx 生成 #3

Workflow file for this run

name: Publish Docs
on:
push:
branches:
- "src"
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Install DocFX
run: |
dotnet tool install -g docfx
echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
- name: Directory Switch
run: cd docs
- name: look for docs
run: pwd | ls
- name: Build Documentation
run: docfx build docfx.json
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_site