mirror of
https://github.com/OpenCoin/oc-mint-cpp.git
synced 2024-12-22 23:59:41 +01:00
30 lines
904 B
YAML
30 lines
904 B
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 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.
|