NmeaParser/.github/workflows/ghpages.yml
2020-01-20 21:05:49 -08:00

31 lines
764 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 --tool-path artifacts/toolset dotMorten.OmdGenerator --version 1.2.0
- name: Generate OMD
run: |
mkdir artifacts/docs/api
artifacts/toolset/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 }}