-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (51 loc) · 1.33 KB
/
build_sphinx.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
name: "Sphinx: Render docs"
on:
push:
branches: ["main", "master"]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Add conda to system path
run: |
echo $CONDA/bin >> $GITHUB_PATH
- name: Conda build env for docs
run: |
conda env create -f schimpy_env.yml
source $CONDA/etc/profile.d/conda.sh
conda activate schimpy
pip install -r docsrc/requirements.txt
- name: Build HTML
run: |
source $CONDA/etc/profile.d/conda.sh
conda activate schimpy
cd docsrc/
sphinx-apidoc --force -o . ../schimpy
make clean
make html
- name: Run ghp-import
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
source $CONDA/etc/profile.d/conda.sh
conda activate schimpy
git config http.postBuffer 157286400
git pull
tree -L 2 -a
ghp-import -n -p -f ./docs/html