-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (35 loc) · 987 Bytes
/
documentation.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
name: Documentation
on:
push:
branches: [master]
tags: ["*"]
pull_request:
# Check all PR
jobs:
build-and-publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: install dependencies
run: |
pip install --upgrade pip
pip install -r doc/requirements.txt
sudo apt-get update
sudo apt-get install -y texlive-latex-extra texlive-lang-greek latexmk
- name: build documentation
run: |
cd doc
make html
make latexpdf
cp _build/latex/i-pi.pdf _build/html/ipi-manual.pdf
- name: deploy to gh-pages
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/_build/html/
force_orphan: true