Commit 71b2bf0a authored by Maximilian Sprengholz's avatar Maximilian Sprengholz 😵
Browse files

test

parent 199181a7
......@@ -18,8 +18,8 @@ gen_docs:
stage: build
script:
- cd docs
- python3 dep/regexrep.py 'appendix.md' '(subtitle:[\s][\S])(\b.*$)' '$1Version <b>${CI_COMMIT_TAG}</b>"'
- python3 dep/regexrep.py 'appendix.md' '(date:[\s][\S])(\b.*$)' '$1${DATE}"'
- python3 dep/regexrep.py 'appendix.md' '(subtitle:[\s])(.*)' '\1"Version <b>${CI_COMMIT_TAG}</b>"'
- python3 dep/regexrep.py 'appendix.md' '(date:[\s])(.*)' '\1"${DATE}"'
- pandoc --filter pandoc-include --filter pandoc-crossref --citeproc --bibliography=dep/appendix.bib --csl=dep/journal-of-family-research.csl --number-sections --table-of-contents -c dep/empty.css -H dep/vue_extended_h.css appendix.md -H dep/lightbox.js -s -o appendix.html
- cp appendix.html index.html
- python3 dep/regexrep.py 'index.html' '../results/figures' 'figures' # fix links for pages (though usually no problem with base64 encoded .svg)
......@@ -31,17 +31,15 @@ gen_docs:
- git add docs/index.html
- git commit -m "[ci skip] Built docs ${CI_COMMIT_TAG}" || echo "Nothing to commit."
- git stash
- git pull --rebase http://${GITLAB_USER_LOGIN}:${TOKEN}@scm.cms.hu-berlin.de/${CI_PROJECT_PATH} HEAD:${CI_COMMIT_REF_NAME}
- git pull --rebase http://${GITLAB_USER_LOGIN}:${TOKEN}@scm.cms.hu-berlin.de/${CI_PROJECT_PATH}
- git stash pop || echo "No stashes to pop."
- git push http://${GITLAB_USER_LOGIN}:${TOKEN}@scm.cms.hu-berlin.de/${CI_PROJECT_PATH} HEAD:${CI_COMMIT_REF_NAME}
- git push http://${GITLAB_USER_LOGIN}:${TOKEN}@scm.cms.hu-berlin.de/${CI_PROJECT_PATH}
only:
- master
pages:
stage: deploy
script:
- git pull --rebase http://${GITLAB_USER_LOGIN}:${TOKEN}@scm.cms.hu-berlin.de/${CI_PROJECT_PATH} HEAD:${CI_COMMIT_REF_NAME}
- git checkout master
- rm -rf public
- mkdir public
- cp -R -f results/figures/ public/ # copy figures
......
This diff is collapsed.
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