wypierdalac/.gitlab-ci.yml

22 wiersze
756 B
YAML

deploy:
stage: deploy
script:
# fmt the txt
- rename.ul .txt .src ./kaczissimus/*.txt
- for f in ./kaczissimus/*.src; do fmt --split-only $f > "$f.txt"; done
- rm ./kaczissimus/*.src
- rename.ul .src.txt .txt ./kaczissimus/*
# pandoc the markdown
- |
for f in *.md; do
echo -e "---\nheader-includes:\n - \hypersetup{colorlinks=true,\n allbordercolors={0 0 0},\n pdfborderstyle={/S/U/W 1}}\n---" \
| cat - "$f" \
| pandoc -s -o "${f%.md}.pdf";
done
# rsync stuff to the right output directory
- rsync -av --exclude=.git --exclude=.gitignore --exclude=README.md --exclude=.gitlab-ci.yml --delete --delete-excluded ./ /srv/websites/$CI_PROJECT_NAME/
only:
- master
tags:
- master