1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-14 06:15:41 +00:00
X10D/.github/workflows/docfx.yml
Oliver Booth 5d7d570749
[github actions] Pass GITHUB_TOKEN to docfx job
I'm still winging it. I have no idea how to fix this bug because the action in question is beyond my control.

https://github.com/maxheld83/ghpages/issues/31

^ This issue claims the linked issue provides a fix. Wasn't able to follow, so I'm just passing this token because... why not at this point? I'm getting tired of making commits that fails CI. I just want to watch Better Call Saul.
2022-05-12 15:00:40 +01:00

23 lines
513 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
env:
BUILD_DIR: docfx_project/_site
GH_PAT: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}