forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 999 Bytes
/
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
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@v3
- name: Install doxygen
run: 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