1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 13:41:13 +02:00
ModernCppStarter/.github/workflows/documentation.yaml
Lars Melchior b58e0717f4
Merge envs in workflows (#74)
* also use cache in install test

* merge envs
2021-01-21 09:16:01 +00:00

37 lines
853 B
YAML

name: Documentation
on:
push:
tags:
- "*"
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
jobs:
build:
name: Build and publish documentation
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- name: Install dependencies
run: |
brew install doxygen
pip3 install jinja2 Pygments
- name: Build
run: |
cmake -Sdocumentation -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