Skip to content
Snippets Groups Projects
Commit c0b5a626 authored by Konrad Völkel's avatar Konrad Völkel
Browse files

automagically building web+pdf versions

parent 52b96fae
No related branches found
No related tags found
No related merge requests found
Pipeline #110857 passed
stages:
- build
- deploy
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
- venv/
jupyter-build:
stage: build
image: sphinxdoc/sphinx-latexpdf
script:
- python3 -V # Print out python version for debugging
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install --upgrade pip
- pip install -r requirements.txt -v
- alias python=python3 # for jb clean ...
- jupyter-book clean .
- jupyter-book build . --builder html
- jupyter-book build . --builder pdflatex
artifacts:
paths:
- _build/
pages:
stage: deploy
image: busybox:latest
script:
- mv _build/html public
- mv _build/latex/ds-skript.pdf public/
artifacts:
paths:
- public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment