Skip to content

Commit

Permalink
generate doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim8y committed Oct 12, 2023
1 parent f5e257c commit 3f0c9c9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Generate Documentation
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1' # Or your required .NET version

- name: Install DocFx
run: dotnet tool install --global docfx

- name: Generate Documentation
run: |
export PATH="$PATH:/home/runner/.dotnet/tools"
docfx docfx.json
- name: Publish Documentation to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site # or your DocFx output directory

0 comments on commit 3f0c9c9

Please sign in to comment.