From 22408c4475d5f99aa5e855e58fee35abe9c5cfe9 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 18 Aug 2023 18:47:08 +0200 Subject: [PATCH] CI: build and publish LdapSaisie.pdf file --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c8d2482..b3c24b91 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -100,6 +100,19 @@ build:doc: - doc/public_html/ - doc/LdapSaisie.html +build:doc:pdf: + stage: build + image: + name: pink33n/html-to-pdf + entrypoint: ["/bin/sh", "-c"] + needs: + - build:doc + script: + - /usr/local/bin/entrypoint --url file://$(pwd)/doc/LdapSaisie.html --pdf doc/LdapSaisie.pdf + artifacts: + paths: + - doc/LdapSaisie.pdf + deploy:doc: stage: deploy image: alpine:latest @@ -112,3 +125,4 @@ deploy:doc: script: - rsync -atv --exclude '.git*' --delete --progress ./doc/public_html/ $SSH_USER@$SSH_HOST:./ - rsync -atv ./doc/LdapSaisie.html $SSH_USER@$SSH_HOST:LdapSaisie.html + - rsync -atv ./doc/LdapSaisie.pdf $SSH_USER@$SSH_HOST:LdapSaisie.pdf