diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..d298be107f27247a24d24f8f78c55d42359007be --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/ \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..553e1730475de986822019ad2dd2bf73dac70f1b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +image: python:3.8-buster + +before_script: + - pip install -r requirements.txt + +test: + stage: test + script: + - mkdocs build --verbose --site-dir test + artifacts: + paths: + - test + rules: + - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH + +pages: + stage: deploy + script: + - pwd + - ./updateFileList.sh + - mkdocs build # remove --script to be more easy to use + artifacts: + paths: + - public + rules: + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH