1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-10-18 18:16:11 +00:00
X10D/.github/workflows/docfx.yml
Oliver Booth 4da6ac7de4
[github actions] Pass repo token to docfx job
Honestly I'm just winging it at this point.
2022-05-12 14:45:39 +01:00

24 lines
525 B
YAML

name: DocFX
on:
push:
branches: [ main ]
jobs:
docfx:
runs-on: ubuntu-latest
name: Publish Documentation
steps:
- uses: actions/checkout@v1
- uses: nikeee/docfx-action@v1.0.0
name: Build Documentation
with:
args: docfx_project/docfx.json
- uses: maxheld83/ghpages@master
name: Publish Documentation on GitHub Pages
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
env:
BUILD_DIR: docfx_project/_site
GH_PAT: ${{ secrets.GH_PAT }}