-
Notifications
You must be signed in to change notification settings - Fork 268
40 lines (34 loc) · 1.27 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
34
35
36
37
38
39
40
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: |
git clone https://github.com/raghur/mermaid-filter/
cd mermaid-filter
sed -i '1s/{/{ "overrides": { "puppeteer": "^21" },/' package.json
sed -i '1s/^\/\/ //' index.js
npm install --loglevel verbose
sudo npm link --loglevel verbose
cd ..
- 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