Skip to content
Snippets Groups Projects
Commit 422cd159 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[scripts][ci] Do not re-deploy documentation (risks multiple parallel deployments)

parent 3bf4aaa0
No related branches found
No related tags found
No related merge requests found
Pipeline #27732 passed
...@@ -522,16 +522,9 @@ def nightlies(ctx, order, dry_run): ...@@ -522,16 +522,9 @@ def nightlies(ctx, order, dry_run):
public=(not private), username=os.environ['DOCUSER'], public=(not private), username=os.environ['DOCUSER'],
password=os.environ['DOCPASS'], overwrite=False, dry_run=dry_run) password=os.environ['DOCPASS'], overwrite=False, dry_run=dry_run)
# re-deploys freshly built documentation if we're on the master branch # removes the documentation to avoid permissions issues with the following
# otherwise, removes the documentation # projects being built
local_docs = os.path.join(os.environ['CI_PROJECT_DIR'], 'sphinx') local_docs = os.path.join(os.environ['CI_PROJECT_DIR'], 'sphinx')
if is_master:
deploy_documentation(local_docs, package, stable=stable,
public=(not private), branch='master', tag=None,
username=os.environ['DOCUSER'], password=os.environ['DOCPASS'],
dry_run=dry_run)
if os.path.exists(local_docs): if os.path.exists(local_docs):
logger.debug('Sphinx output was generated during test/rebuild ' \ logger.debug('Sphinx output was generated during test/rebuild ' \
'of %s - Erasing...', package) 'of %s - Erasing...', package)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment