Update docs to include polygon tutorial #2
Workflow file for this run
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_docs | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: ['*'] | |
jobs: | |
build-docs: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
with: | |
submodules: recursive | |
- uses: actions/[email protected] | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip setuptools wheel | |
pip install -r requirements.in | |
pip install -r requirements-dev.txt | |
pip install .[all] | |
- name: Build the book | |
run: jupyter-book build docs/ --warningiserror --keep-going --all | |
- name: Upload artifacts to GitHub | |
uses: actions/[email protected] | |
with: | |
name: html | |
path: docs/_build/html | |
deploy-docs: | |
needs: [build-docs] | |
runs-on: ubuntu-22.04 | |
if: github.event.pull_request.merged | |
steps: | |
- uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} # do we need this escaping? | |
publish_dir: docs/_build/html |