Files
Controls-docs/.gitlab-ci.yml
T

29 lines
985 B
YAML

image: debian:latest
before_script:
- apt-get update
- apt-get install -y ca-certificates && apt-get clean
- apt-get install -y pip && apt-get clean
# following ones get updated, so they are not installed from Debian package repo: python3-sphinx python3-pybtex-docutils
#- apt-get install -y python3-sphinx && apt-get clean
- apt-get install -y jupyter-notebook && apt-get clean
- apt-get install -y python3-anyio python3-greenlet python3-click python3-jupyter-server python3-sqlalchemy python3-latexcodec python3-nbclient python3-nest-asyncio python3-pybtex python3-smmap python3-soupsieve python3-toml && apt-get clean && rm -r /var/lib/apt /usr/share/doc /usr/share/man
- pip install jupyter-book && rm -r /root/.cache/pip
pages:
stage: deploy
script:
- python3 --version
- jupyter-book build .
- echo "move content to public folder"
- mv ./_build/html public
tags:
- shared
- gitlab-pages
- docker
artifacts:
paths:
- public
only:
- master