-
Notifications
You must be signed in to change notification settings - Fork 45
49 lines (36 loc) · 1.04 KB
/
publish-docs.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
on: [push, pull_request]
name: "Documentation Status"
permissions:
contents: write
jobs:
build-and-publish:
if: "! contains(github.event.head_commit.message, '[ci skip]')"
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install sphinx numpydoc sphinx-autobuild sphinx-rtd-theme
- name: Install this Python package
run: |
python -m pip install .[clipboard,download,express,gel]
- name: Session information
run: |
python --version
- name: Build documentation
run: |
cd docs
make html
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.6.0
with:
clean: false
branch: gh-pages
folder: docs/_build/html