cours-m1-eea/.gitlab-ci.yml
Pierre-antoine Comby d5ea32f613 using sftp
2019-06-15 11:58:24 +02:00

18 lines
526 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:
- make all -j8 # build the pdf
- lftp -e " mirror public www/m1-eea; bye" -u $FTP_USER,$FTP_PASSWORD sftp://zamok.crans.org
artifacts:
paths:
- public # instruct GitLab to keep the public folder
only:
- master # deploy the pdf only for commits made to the master branch