From 06b09cd270615db51df11092031ec3fdf2d43c39 Mon Sep 17 00:00:00 2001 From: JosephK Date: Wed, 28 Feb 2018 16:45:53 +0100 Subject: [PATCH] CI Gitlab Pages (deploy later) --- .gitlab-ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e28d0d..f56085e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ image: hatsoftwares/hugo-vnu:latest stages: - validity-check - - deploy + - pages validity-check: stage: validity-check @@ -19,3 +19,15 @@ deploy: - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then echo -e "${DEPLOYEMENT_KEY}" > key; chmod 600 key; rsync -e "ssh -i key" -a --delete --exclude='stats' --exclude='.htaccess' public/ ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web/; rm key; fi only: - master + +pages: + stage: deploy + script: + - mkdir .public + - cp -r * .public + - mv .public public + artifacts: + paths: + - public + only: + - master