-
Notifications
You must be signed in to change notification settings - Fork 262
33 lines (27 loc) · 1.01 KB
/
publish.yaml
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
name: Publish CBMC documentation
on: [push, pull_request]
jobs:
# This job takes approximately 3 minutes
publish:
# Note that the versions used for this `publish` job should be kept in sync
# with the `check-doxygen` job.
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install doxygen
run: |
sudo apt update
sudo apt install doxygen graphviz pandoc npm
- name: Install python modules
run: sudo python3 -m pip install gitpython pandocfilters
- name: Install mermaid diagram filter
run: sudo npm install --global mermaid-filter
- name: Build documentation
run: cd doc/doxygen-root && make && touch html/.nojekyll
- name: Publish documentation
if: ${{ github.event_name == 'push' && startsWith('refs/heads/develop', github.ref) }}
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: doc/doxygen-root/html