1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-14 21:55:41 +00:00
X10D/.github/workflows/docfx.yml

31 lines
704 B
YAML
Raw Normal View History

2020-04-26 14:27:16 +01:00
name: DocFX
on:
push:
branches: [ main ]
2020-04-26 14:27:16 +01:00
jobs:
docfx:
2020-04-26 14:27:16 +01:00
runs-on: ubuntu-latest
name: Publish Documentation
2020-04-26 14:27:16 +01:00
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 }}