Skip to content

Merge pull request #64 from ocean-uhh/63-cli-and-api-redesign #22

Merge pull request #64 from ocean-uhh/63-cli-and-api-redesign

Merge pull request #64 from ocean-uhh/63-cli-and-api-redesign #22

Workflow file for this run

name: Deploy Documentation
on:
# This will run after merging a pull request onto main
push:
branches:
- main
jobs:
deploy-docs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
permissions:
contents: write
steps:
- name: Run a one-line script
run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Install seasenselib
shell: bash -l {0}
run: |
python -m pip install -e . --no-deps --force-reinstall
# Assumes that the notebook to be documented is located within notebooks/ and is called demo.ipynb
# In the example below, we've included the `--ExecutePreprocessor.allow_errors=True` flag to allow the notebook to build even if there are errors
# For production runs (and when your code is cleaner), you can remove this flag or set it to False.
- name: Build documentation
shell: bash -l {0}
run: |
set -e
pushd docs
make clean html
popd
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html