-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (36 loc) · 1023 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
40
name: Documentation
on:
push:
branches: [main]
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 docs/requirements.txt
sudo apt-get update
sudo apt-get install -y texlive-latex-extra texlive-lang-greek latexmk
- name: build documentation
run: |
cd docs
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: ./docs/_build/html/
force_orphan: true
cname: docs.ipi-code.org