-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (50 loc) · 1.59 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
52
53
54
55
56
57
58
59
60
name: Deploy documentation
on:
push:
branches: main
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-docs
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install dependencies
run: |
sudo apt-get update
sudo apt install doxygen
sudo apt install graphviz
sudo apt install texlive
sudo apt install texlive-latex-extra
sudo apt install latexmk
python3 -m pip install sphinx==5.0.0 sphinx_rtd_theme sphinxcontrib-bibtex
- name: Build doxygen
working-directory: ${{ github.workspace }}/Docs
run: |
doxygen doxyfile
- name: Build HTML documentation
working-directory: ${{ github.workspace }}/Docs/Sphinx
run: |
make html
- name: Build PDF documentation
working-directory: ${{ github.workspace }}/Docs/Sphinx
run: |
make latexpdf
- name: Cleanup
working-directory: ${{ github.workspace }}/Docs
run: |
cp -a Sphinx/build/html/* ./
mv Sphinx/build/latex/ebgeometry.pdf ./
rm -rf Sphinx/build
- name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: Docs
clean: false