1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-09-03 23:50:53 +02:00

add workflow to publish documentation

This commit is contained in:
Lars Melchior 2020-06-03 14:19:25 +02:00
parent 6df5e095c9
commit 2842f07b53
4 changed files with 39 additions and 6 deletions

27
.github/workflows/documentation.yaml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Documentation
on:
push:
tags:
- '*'
jobs:
build:
name: Build and publish documentation
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Install doxygen
run: brew install doxygen
- name: Build
run: |
cmake -Hdocumentation -Bbuild
cmake --build build --target GenerateDocs
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/doxygen/html