cancionero-25/.gitlab-ci.yml
2025-04-04 17:54:24 +00:00

19 lines
890 B
YAML

# The Docker image that will be used to build your app
image: python:latest
create-pages:
pages:
# The folder that contains the files to be exposed at the Page URL
publish: www
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
# Functions that should be executed before the build script is run
before_script:
- pip install django && apt update && apt install -y 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.git ../cancionero-web
- ln -s ../cancionero-25 ../cancionero-web/latex
- mkdir ../cancionero-web/audios
script:
- make -C ../cancionero-web TITLE="Cancionero de ejemplo" AUTHOR="2025 Autor" LINKS="no"
- mv ../cancionero-web/public www