github actions for docfx

This commit is contained in:
ousttrue 2021-09-06 20:03:49 +09:00
parent 1c44a545c2
commit a4770a95aa

30
.github/workflows/docfx.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: DocFX
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
# build docfx site to docfx/_site
- name: DocFX
shell: cmd
run: |
choco install docfx -y
docfx docfx\docfx.json
# push docfx/_site to gh-pages
- name: Publish Documentation on GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docfx/_site