kopia lustrzana https://git.rys.io/libre/wypierdalac
25 wiersze
732 B
YAML
25 wiersze
732 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 "---
|
|
header-includes:
|
|
- \hypersetup{colorlinks=true,
|
|
allbordercolors={0 0 0},
|
|
pdfborderstyle={/S/U/W 1}}
|
|
---" | 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
|