-
Notifications
You must be signed in to change notification settings - Fork 119
51 lines (49 loc) · 1.35 KB
/
docs.yml
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
41
42
43
44
45
46
47
48
49
50
51
name: Documentation
on:
push:
branches:
- master
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cvmfs-contrib/github-action-cvmfs@v4
- name: Start container
run: |
docker run -it \
--name CI_container \
-v ${GITHUB_WORKSPACE}:/Package \
-v /cvmfs:/cvmfs:shared \
-d ghcr.io/key4hep/key4hep-images/alma9:latest /bin/bash
- name: Compile Documentation
run: |
docker exec CI_container /bin/bash -c 'cd Package
yum install -y graphviz
source ./setup.sh
mkdir -p build
cd build
cmake ..
make doc'
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/doxygen/html
destination_dir: doc/latest
man:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install mandoc
run: |
sudo apt-get install -y mandoc
- name: Compile HTML pages
run: |
.github/scripts/man2html.sh
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./man/html
destination_dir: man/latest