NmeaParser/.github/workflows/ghpages.yml
2020-01-20 23:09:14 -08:00

43 lines
1.2 KiB
YAML

name: Publish Documentation
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-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: restore nuget packages
run: dotnet msbuild /t:restore src/NmeaParser/NmeaParser.csproj
# - 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
run: build\GenerateDoc.cmd
- name: Publish Documentation
uses: peaceiris/actions-gh-pages@v2
env:
# ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PERSONAL_TOKEN: ${{ secrets.GH_PAT }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./artifacts/docs_site
# uses: maxheld83/ghpages@master
# env:
# BUILD_DIR: artifacts/docs_site
# GH_PAT: ${{ secrets.GH_PAT }}