diff --git a/.github/workflows/deploy_doc.yml b/.github/workflows/deploy_doc.yml new file mode 100644 index 0000000..2a0e8f2 --- /dev/null +++ b/.github/workflows/deploy_doc.yml @@ -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 \ No newline at end of file