oc-mint/.github/workflows/doxygen-gh-pages.yml

30 lines
900 B
YAML

name: Doxygen Github Pages Deploy action
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Prepare dependencies
run: sudo apt-get update && sudo apt-get install -yq libboost-system-dev libboost-date-time-dev cmake graphviz doxygen
- name: configure
run: cmake -B build -S . -DEXPATPP_BUILD_DOCS=ON
- name: clean generated docs dir
run: rm -rf build/html
- name: build
run: cmake --build build --target doc
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/html # The folder the action should deploy.