cours-m1-eea/.gitlab-ci.yml
Pierre-antoine Comby f10f0539cc add ftp to CI
2019-06-15 10:58:51 +02:00

18 lines
538 B
YAML

image: aergus/latex # use a Docker image for LaTeX from https://hub.docker.com/
deploy:
stage: deploy
variables:
USER: "gitlab-runner"
before_script:
- apt-get update -qy
- apt-get install -y lftp
script:
- ./compile.sh # build the pdf
- lftp -e "open sftp.zamok.crans.org; user $FTP_USERNAME $FTP_PASSWORD; mirror public/ www/m1-eea/; bye"
artifacts:
paths:
- public # instruct GitLab to keep the public folder
only:
- master # deploy the pdf only for commits made to the master branch