mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
710efd292b
added target-folder to github deploy fixed debian install command
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: Deploy Doxygen results to Github Pages
|
|
|
|
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 -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
|
|
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: site # The folder the action should deploy.
|
|
target-folder: master # deploy to versioned directory
|