Commit 48fa0569 authored by Maximilian Sprengholz's avatar Maximilian Sprengholz

Testing...

parent 7a7e5bec
Pipeline #14949 failed with stages
in 29 seconds
......@@ -17,21 +17,23 @@ before_script:
gen_docs:
stage: build
script:
- git config --global user.name "${GITLAB_USER_NAME}"
- git config --global user.email "${GITLAB_USER_EMAIL}"
- git checkout -b temp
- cd docs
- python3 dep/regexrep.py 'appendix.md' '(subtitle:[\s])(.*)' '\1"Version <b>' ${CI_COMMIT_TAG} '</b>"'
- python 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
- cd ../
- git config --global user.name "${GITLAB_USER_NAME}"
- git config --global user.email "${GITLAB_USER_EMAIL}"
- git add docs/appendix.md
- git add docs/appendix.html
- git commit -m "Document build ${CI_COMMIT_TAG} [ci skip]" || echo "Nothing to commit."
- git remote rm origin && git remote add origin http://${GITLAB_USER_LOGIN}:${TOKEN}@scm.cms.hu-berlin.de/${CI_PROJECT_PATH}
- git push origin :refs/tags/${CI_COMMIT_TAG}
- git push -u origin temp
- git tag -d ${CI_COMMIT_TAG}
- git tag -a ${CI_COMMIT_TAG} -m "Bump to ${CI_COMMIT_TAG} [ci skip]"
- git push http://${GITLAB_USER_LOGIN}:${TOKEN}@scm.cms.hu-berlin.de/${CI_PROJECT_PATH} HEAD:${CI_COMMIT_REF_NAME} --tags
- git push origin :refs/tags/${CI_COMMIT_TAG}
- git push origin ${CI_COMMIT_TAG} HEAD:${CI_COMMIT_REF_NAME}
only:
- tags
......
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