Skip to content

Commit

Permalink
[增加]1. 增加Docfx 生成
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Dec 5, 2024
1 parent 688a1ac commit d50ee20
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docs-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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: Build Documentation
run: docfx build ./docs/docfx.json

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_site

0 comments on commit d50ee20

Please sign in to comment.