-
Notifications
You must be signed in to change notification settings - Fork 3
24 lines (22 loc) · 1017 Bytes
/
SphinxBuild.yml
File metadata and controls
24 lines (22 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Sphinx build
on: push
jobs:
sphinx-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build HTML
with:
pre-build-command: "apt install -y pandoc build-essential && python3 -m pip install -U sphinx sphinx-book-theme sphinx-copybutton sphinx-autobuild sphinxcontrib-mermaid sphinxcontrib-contentui nbsphinx sphinxcontrib-napoleon ipython jupyter numpy matplotlib scipy netcdf4 scikit-learn tornado future pandas ipympl cmdstanpy ipyfilechooser voila arviz cartopy pmagpy meson clang && sphinx-apidoc -f -o docs src/BiCEP/ && python3 -m build && python3 -m pip install -U ./"
uses: ammaraskar/sphinx-action@0.4
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/_build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html