2023-06-08 14:28:05 +00:00
|
|
|
name: Deploy Doxygen results to Github Pages
|
|
|
|
|
2023-06-08 14:28:05 +00:00
|
|
|
#on: push
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-06-15 19:22:50 +00:00
|
|
|
- master
|
2023-06-08 14:28:05 +00:00
|
|
|
|
|
|
|
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 -yq install libasio-dev doxygen mkdocs graphviz zlib1g-dev gcc clang make cmake python3 python3-pip git openssl libssl-dev
|
|
|
|
- name: prepate pip dependencies
|
|
|
|
run: pip3 install mkdocs-material mkdocs-redirects pyyaml mkdocs-meta-descriptions-plugin --no-input
|
|
|
|
- name: configure
|
2023-06-08 14:28:05 +00:00
|
|
|
run: cmake -B build -DCROW_AMALGAMATE=ON
|
2023-06-08 14:28:05 +00:00
|
|
|
- name: clean generated docs dir
|
2023-06-08 14:56:34 +00:00
|
|
|
run: rm -rf site docs/reference
|
2023-06-10 08:31:41 +00:00
|
|
|
- name: clone doxygen theme
|
2023-06-08 14:56:34 +00:00
|
|
|
run: git clone https://github.com/CrowCpp/darxygen.git
|
|
|
|
- name: run doxygen
|
|
|
|
run: doxygen
|
|
|
|
- name: run mkdocs
|
|
|
|
run: mkdocs build
|
2023-06-08 14:28:05 +00:00
|
|
|
|
|
|
|
- name: Deploy 🚀
|
|
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
|
|
with:
|
|
|
|
folder: site # The folder the action should deploy.
|
|
|
|
target-folder: master # deploy to versioned directory
|