From 912dd1fc23267d6c5e8238519959a89807ebc187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Wo=C5=BAniak?= Date: Thu, 29 Oct 2020 23:42:02 +0100 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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/