1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 22:55:42 +00:00
X10D/.github/workflows/docfx.yml

32 lines
725 B
YAML

name: DocFX
on:
push:
branches: [ main ]
workflow_dispatch:
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 }}