diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2415a42..54c5236 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,12 +9,9 @@ deploy: # pandoc the markdown - | for f in *.md; do - echo "--- -header-includes: - - \hypersetup{colorlinks=true, - allbordercolors={0 0 0}, - pdfborderstyle={/S/U/W 1}} ----" | cat - "$f" | pandoc -s -o "${f%.md}.pdf"; + 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/