Skip to content

Commit

Permalink
👍 Add a deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
AutumnSky1010 committed Sep 20, 2024
1 parent 71db777 commit 9fbc488
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy_doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: DocFX Build and Publish

on:
workflow_dispatch

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x

- name: Install DocFX
run: dotnet tool install -g docfx

- name: Build Documentation
run: docfx 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 9fbc488

Please sign in to comment.