Commit 211a09c1 authored by Pierre-antoine Comby's avatar Pierre-antoine Comby

gitlab pages

parent ba14b76d
Pipeline #966 failed
......@@ -4,13 +4,10 @@ compile_pdf:
script: ./compile.sh # build the pdf just as you would on your computer
artifacts:
paths:
- *.pdf # instruct GitLab to keep the main.pdf file
- public # instruct GitLab to keep the main.pdf file
pages:
stage: deploy
script:
- mkdir public # create a folder called public
- cp *.pdf public # copy the pdf file into the public folder
artifacts:
paths:
- public # instruct GitLab to keep the public folder
......
......@@ -2,9 +2,12 @@
# Pour compiler tous les fichiers sources du dépot:
find . -name "main.tex" -execdir sh -c " pwd && latexmk {} -pdf main.tex -e '$latex=q/latex %O -shell-escape %S/' -quiet | grep 'Latexmk'" \;
find . -name "main.tex" -execdir sh -c "pwd && latexmk {} -pdf main.tex -e '$latex=q/latex %O -shell-escape %S/' -quiet | grep 'Latexmk'" \;
for i in `find . -maxdepth 1 -type d -regex \.\/[0-9].*?`;do
cp $i/Cours/main.pdf ./public/$i.pdf;
done;
#clean up :
shopt -s globstar
rm -f **/*.aux **/*.log **/*.out
#rm -f **/*.aux **/*.log **/*.out
#**/*.fls **/*.fdb_latexmk **/*.toc
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