manual_teachbooks/.gitlab-ci.yml
Caspar Jungbacker 3870d783e0 Update CI image
2023-04-16 20:05:14 +02:00

35 lines
560 B
YAML

image: python:3.10-bullseye
stages:
- build
- deploy
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
- venv/
- archive/_build
before_script:
- python -V
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
jupyter-build:
stage: build
only:
- main
script:
- pip install -r requirements.txt
- jupyter-book build book/
push-html:
stage: deploy
only:
- main
script:
- git clone "https://RobOt:$ACCESS_TOKEN@gitlab.tudelft.nl/$CI_PROJECT_PATH.git"