From 2d678a9885fe025be280dfd34aa73f712ae97eff Mon Sep 17 00:00:00 2001 From: ROSPARS Benoit Date: Wed, 6 Mar 2019 17:00:48 +0100 Subject: [PATCH] Test deploy pages with pandoc --- .gitlab-ci.yml | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ed036f5..a94dd9a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,20 +1,14 @@ -image: binarin/org-export -stages: -- build - -build: - stage: build +pages: + stage: deploy script: - - ls -al / -# - for file in $(find -name "*.org"); do -# emacs --batch --load /emacs/export.el --file $file --eval '(org-html-export-to-html)' && echo "Exported $file" || echo "ERROR $file"; -# done -# artifacts: -# expire_in: 1 day -# paths: -# - module1/ressources/*.html -# - module2/ressources/*.html -# - module3/ressources/*.html -# - module4/ressources/*.html + - mkdir .public + - for file in $(find -name "*.md"); do + pandoc -s -f markdown_github -t html -o ${file%.*}.html $file && echo "Exported ${file%.*}.html" || echo "ERROR $file"; + done + - cp -r * .public + - mv .public public + artifacts: + paths: + - public only: - ci -- 2.18.1