-
Notifications
You must be signed in to change notification settings - Fork 23
75 lines (64 loc) · 2.02 KB
/
rtd.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: 'Build RTD'
on:
push:
branches:
- 'devel*'
pull_request:
branches:
- 'devel*'
- 'master*'
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
rtd:
name: "Build documentation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y pandoc
sudo apt install -y libopenmpi-dev
sudo apt install -y texlive cm-super
sudo apt install -y texlive-fonts-extra texlive-extra-utils dvipng
sudo apt install -y texlive-fonts-recommended texlive-latex-extra
python -m pip install -U pip
python -m pip install -r requirements-docs-ci.txt
- name: Build the docs
run: |
export RADICAL_LOG_LVL=DEBUG
export RADICAL_BASE=`pwd`
sphinx-build -M html docs/source docs/build
- name: Collect artifacts
if: always()
run: |
mkdir doc_artifacts/
cp -R ./docs doc_artifacts/
cp -R ./rp.sess* doc_artifacts/
cp -R /home/runner/radical.pilot.sandbox doc_artifacts/
- name: Upload doc artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: doc_artifacts
path: doc_artifacts
retention-days: 5
- name: Upload to RTD
uses: actions/upload-artifact@v4
if: always()
with:
name: rtd-${{ github.sha }}
path: docs/build
- name: Trigger RTDs build
uses: dfm/rtds-action@v1
with:
webhook_url: ${{ secrets.RTD_URL }}
webhook_token: ${{ secrets.RTD_TOKEN }}
commit_ref: ${{ github.ref }}