Skip to content

Update sphinx.yml

Update sphinx.yml #2

Workflow file for this run

name: Deploy Sphinx documentation to Pages
on:
push:
branches: [main] # branch to trigger deployment
jobs:
build-and-deploy:
runs-on: ubuntu-22.04 # Specifies the runner environment
steps:
- name: Check out the repository
uses: actions/checkout@v3 # Checks out your repository under $GITHUB_WORKSPACE, so your workflow can access it
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12' # Specify the Python version you need for your project
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build Sphinx Documentation
run: |
chmod +x docs/rebuild-docs.sh
./docs/rebuild-docs.sh # Runs your script to build the documentation
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html # Directory where the built HTML files are located