Skip to content

edit workflow

edit workflow #7

Workflow file for this run

name: Build and Deploy orgroamtools Docs
on: [push]
permissions:
contents: write
jobs:
docs:
name: Publish documentation
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set Up Python
uses: actions/setup-python@v3
with:
python-version: 3.7 # Specify your Python version
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
- name: Build Docs with Sphinx
run: |
cd docs
sphinx-apidoc -o source/ ../orgroamtools
sphinx-build docs build
make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: docs/build/html