Commit f7e2dc08 authored by Piergiorgio Pancino's avatar Piergiorgio Pancino
Browse files

wip

parent 3d15a61e
Pipeline #17936 passed with stages
in 3 minutes and 42 seconds
......@@ -2,7 +2,7 @@ DOMAIN="pancino.gitlab.esrf.fr"
ADDRESS="https://pancino.gitlab-pages.esrf.fr/bliss"
echo "<!DOCTYPE html>" > public/index.html
echo "<html lang=en>" >> public/index.html
echo "<head><title>Bliss</title><h1>Bliss</h1></head>" >> public/index.html
echo "<head><title>Bliss Versions</title><h1>Bliss</h1></head>" >> public/index.html
echo "<body>" >> public/index.html
for bliss_tag in $@
......
......@@ -219,24 +219,23 @@ pages:
- builder
- linux
script:
# Publishing to intranet folders
# Preparing
- git fetch --tags
- mkdir -p public
# Make a copy of existing documentation on gitlab webpages
# Workaround as gitlab does not manage different versions of documentation
- conda install -y wget
- sh .gitlab-ci-docs-publish.sh master $(git tag)
# Publishing documentation for the actual version
# if we have a tag it will be published under the intranet gitlab page under /tag/ otherwhise under /master/
- if [[ ( $CI_COMMIT_REF_NAME == master && -z $CI_COMMIT_TAG ) ]]; then export DOC_DIR='master'; else export DOC_DIR=${CI_COMMIT_TAG}; fi
#- rm -rf public/* # target dir should be cleaned at first time
- conda install -y wget
- mkdir -p public
- git fetch --tags
- echo "TAG TAG TAG $(git tag)"
#- sh .gitlab-ci-docs-publish.sh master $(git ls-remote --tags origin | grep -o '[0-9]*\.[0-9]*\.[0-9]*')
- sh .gitlab-ci-docs-publish.sh master $(git tag)
- rm -rf public/${DOC_DIR}
# touching to update timestamp to not be deleted
- mkdir -p public/${DOC_DIR}/api/
- mkdir -p public/${DOC_DIR}/htmlcov/
- cp -rT doc/site public/${DOC_DIR}/
- cp -rT build/sphinx/html public/${DOC_DIR}/api/
- 'cp -rT htmlcov public/${DOC_DIR}/htmlcov/ || :'
- ls public/
artifacts:
paths:
- public
......
Supports Markdown
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