-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (40 loc) · 1.19 KB
/
publish.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
name: Publish docs
on:
push:
branches:
- master
paths-ignore:
- "testing/**"
# schedule:
# - cron: '0 0 * * *'
jobs:
docs:
if: "!(contains(github.event.head_commit.message, 'skip ci') || contains(github.event.head_commit.message, 'skip doc'))"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
sudo apt-get install -y \
texlive-latex-recommended \
texlive-fonts-recommended \
texlive-latex-extra \
texlive-xetex \
latexmk
python -m pip install --upgrade pip
pip install -r requirements-docs.txt
- name: Build docs
run: |
python -m friendly_data.doc > doc/api/registry.rst
make -C doc _static/data/{technology,flow_out_sum,iamc}.csv html
# make -C doc latexpdf html
- name: Publish pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/_build/html
force_orphan: true