Commit 2d678a98 authored by brospars's avatar brospars

Test deploy pages with pandoc

parent f82c322c
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment