From 3f0c9c9e8a3d54f9f4e7d1ae19f23e03c346e923 Mon Sep 17 00:00:00 2001 From: Jinghui Liao Date: Thu, 12 Oct 2023 21:58:29 +0800 Subject: [PATCH] generate doc --- .github/workflows/doc.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/doc.yml diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml new file mode 100644 index 0000000000..a35cd04314 --- /dev/null +++ b/.github/workflows/doc.yml @@ -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