diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4b44117 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +default: + image: "python:latest" + +create_pages: + script: + - pip install django && apt update && apt install -y make node-less locales && sed -i '/es_ES.UTF-8/s/^# //g' /etc/locale.gen && locale-gen + - git clone https://gitlab.com/parroquia-san-leandro/cancionero-web /cancionero-web + - ln -s $CI_PROJECT_DIR /cancionero-web/latex + - mkdir /cancionero-web/audios + - make -C /cancionero-web + - echo La web está disponible en https://$CI_PROJECT_NAMESPACE_SLUG.gitlab.io/$CI_PROJECT_PATH/ + pages: true + artifacts: + paths: + - /cancionero-web/public + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + environment: production \ No newline at end of file