From fd04e27c3f667f4178ef3d24bfd862957f308b00 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Thu, 3 Apr 2025 17:04:49 +0000 Subject: [PATCH] =?UTF-8?q?Crear=20p=C3=A1ginas=20autopublicadas=20con=20c?= =?UTF-8?q?ancionero-web?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitlab-ci.yml 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