diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..be7ac8ee96a3f951d846a44373a9143bbec83bab --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +stages: + - build + - deploy + +variables: + PAGES: $CI_PROJECT_DIR/public + +before_script: + - pip install jupyter nbconvert + +build_notebooks: + stage: build + script: + - mkdir -p $PAGES + - jupyter nbconvert --to html notebooks/*.ipynb --output-dir=$PAGES + +pages: + stage: deploy + script: + - mkdir -p public + - cp -r $PAGES/* public + artifacts: + paths: + - public + only: + - main