forked from Sensirion/python-i2c-sen5x
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.28 KB
/
sphinx-gh-pages.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
name: Build and Deploy Documentation
on:
push:
branches:
- master # Replace with your default branch if it's not 'master'
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10' # Specify the Python version
- name: Install Dependencies
run: |
sudo apt-get install tree
python -m pip install --upgrade pip
# cd ${GITHUB_WORKSPACE}
pip install sphinx sphinx_rtd_theme
git clone https://github.com/good-enough-technology/CircuitPython_sensirion_i2c_driver
pip install ./CircuitPython_sensirion_i2c_driver/
pip install -r docs/requirements.txt
# Install any other dependencies here
- name: Install Package
run: |
pip install .
- name: Build Documentation
run: |
cd docs
make html
ls _build/html
tree _build/html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
user_name: 'tyeth'
user_email: '[email protected]'
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html