Attempt to prompt bundle maker with requirements.txt #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |