Skip to content

Merge pull request #100 from GreenScheduler/fix-off-by-one #21

Merge pull request #100 from GreenScheduler/fix-off-by-one

Merge pull request #100 from GreenScheduler/fix-off-by-one #21

name: Build and deploy docs
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install cats
run: python3 -m pip install .
- run: |
pip install -r docs/docs-requirements.txt
- name: Build sphinx docs
run: make -C docs html
- name: Deploy sphinx docs
run: |
git config user.name 'github-action'
git config user.email 'github-action'
ghp-import -m 'Update sphinx docs' --push --no-history \
--branch gh-pages --no-jekyll --force docs/build/html