-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.17 KB
/
docs.yml
File metadata and controls
38 lines (38 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Simple workflow for deploying static content to GitHub Pages
name: docs to static site
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: Build and publish documentation
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: "**/.cache/CPM"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- name: Install dependencies
run: |
brew install doxygen
pip3 install jinja2 Pygments
- name: Build doc structure
run: make docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'build/docs/doxygen/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2