Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bliss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Piergiorgio Pancino
bliss
Commits
f7e2dc08
Commit
f7e2dc08
authored
5 years ago
by
Piergiorgio Pancino
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
3d15a61e
No related branches found
No related tags found
No related merge requests found
Pipeline
#17936
passed
5 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci-docs-publish.sh
+1
-1
1 addition, 1 deletion
.gitlab-ci-docs-publish.sh
.gitlab-ci.yml
+8
-9
8 additions, 9 deletions
.gitlab-ci.yml
with
9 additions
and
10 deletions
.gitlab-ci-docs-publish.sh
+
1
−
1
View file @
f7e2dc08
...
...
@@ -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
$@
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
8
−
9
View file @
f7e2dc08
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment