2020-05-13 10:05:54 +08:00
|
|
|
name: build-docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- feature/docs
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
run-docfx:
|
|
|
|
runs-on: ubuntu-latest
|
2022-07-26 12:10:32 +08:00
|
|
|
timeout-minutes: 10
|
2020-05-13 10:05:54 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: Cysharp/DocfxTemplate
|
|
|
|
path: docs/_DocfxTemplate
|
|
|
|
- uses: Kirbyrawr/docfx-action@master
|
|
|
|
name: Docfx metadata
|
|
|
|
with:
|
|
|
|
args: metadata docs/docfx.json
|
|
|
|
- uses: Kirbyrawr/docfx-action@master
|
|
|
|
name: Docfx build
|
|
|
|
with:
|
|
|
|
args: build docs/docfx.json
|
|
|
|
- name: Publish to GitHub Pages
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2021-04-19 17:47:10 +08:00
|
|
|
publish_dir: docs/_site
|