Skip to content

Update docs.yml

Update docs.yml #2

Workflow file for this run

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: |
python -m pip install --upgrade pip
pip install sphinx
# Install any other dependencies here
- name: Install Package
run: |
pip install .
- name: Build Documentation
run: |
cd docs
make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html