mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-14 04:15:41 +00:00
31 lines
704 B
YAML
31 lines
704 B
YAML
name: DocFX
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
docfx:
|
|
runs-on: ubuntu-latest
|
|
name: Publish Documentation
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Copy favicon
|
|
run: |
|
|
mkdir docfx_project/images
|
|
cp branding_Icon.png docfx_project/images/favicon.png
|
|
|
|
- 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 }}
|