NmeaParser/.github/workflows/ghpages.yml
2020-01-20 20:50:31 -08:00

29 lines
666 B
YAML

name: Publish Documentation
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone NmeaParser
uses: actions/checkout@v1
- name: Install .NET OMD Generator
run: dotnet tool install --global dotMorten.OmdGenerator
- name: Generate OMD
run: generateomd /source=src/NmeaParser /output=artifacts/docs/api/omd.html
- name: Build Documentation
uses: nikeee/docfx-action@master
with:
args: docs\docfx.json
- name: Publish Documentation
uses: maxheld83/ghpages@master
env:
BUILD_DIR: artifacts/docs_site
GH_PAT: ${{ secrets.GH_PAT }}