2020-04-26 14:27:16 +01:00
|
|
|
name: DocFX
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-04-30 17:01:01 +01:00
|
|
|
branches: [ main ]
|
2023-08-24 01:54:25 +01:00
|
|
|
workflow_dispatch:
|
2020-04-26 14:27:16 +01:00
|
|
|
|
|
|
|
jobs:
|
2022-05-12 14:26:10 +01:00
|
|
|
docfx:
|
2020-04-26 14:27:16 +01:00
|
|
|
runs-on: ubuntu-latest
|
2022-05-12 14:26:10 +01:00
|
|
|
name: Publish Documentation
|
2020-04-26 14:27:16 +01:00
|
|
|
steps:
|
2023-04-13 02:31:21 +01:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Copy favicon
|
2023-04-13 02:38:17 +01:00
|
|
|
run: |
|
|
|
|
mkdir docfx_project/images
|
|
|
|
cp branding_Icon.png docfx_project/images/favicon.png
|
2023-04-13 02:31:21 +01:00
|
|
|
|
|
|
|
- name: Build documentation
|
|
|
|
uses: nikeee/docfx-action@v1.0.0
|
|
|
|
with:
|
|
|
|
args: docfx_project/docfx.json
|
|
|
|
|
|
|
|
- name: Publish documentation on GitHub Pages
|
|
|
|
uses: maxheld83/ghpages@master
|
|
|
|
env:
|
|
|
|
BUILD_DIR: docfx_project/_site
|
|
|
|
GH_PAT: ${{ secrets.GH_PAT }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|