.github/workflows/deploy-document.yml
name: Deploy document page
on:
push:
branches:
- main
jobs:
build-docfx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: nikeee/docfx-action@v1.0.0
name: Build Documentation
with:
args: ./docfx.json
- uses: maxheld83/ghpages@master
name: Publish Documentation on GitHub Pages
env:
BUILD_DIR: _site
GH_PAT: ${{ secrets.GH_PAT }}