mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2025-12-06 07:12:04 +01:00
31 lines
764 B
YAML
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 }}
|