From ab22614f491da4419fd72a7a22c8dd8c284d14a0 Mon Sep 17 00:00:00 2001 From: Daniel Hornung <d.hornung@indiscale.com> Date: Fri, 4 Jun 2021 07:39:26 +0200 Subject: [PATCH] MAINT: Cherry-picked .gitlab-ci.yml from release_doc and adapted. Documentation should now be built for this branch as well for testing purposes. Please remove branch line from .gitlab-ci.yml before merging. --- .gitlab-ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0852bbaa..0d02e703 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -76,16 +76,13 @@ trigger_build: # Build the sphinx documentation and make it ready for deployment by Gitlab Pages # Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages -pages: +pages_prepare: &pages_prepare tags: [ cached-dind ] stage: deploy only: refs: - /^release-.*$/i - - master - variables: - # run pages only on gitlab.com - - $CI_SERVER_HOST == "gitlab.com" + - f-doc-structure script: - echo "Deploying" - make doc @@ -93,3 +90,8 @@ pages: artifacts: paths: - public +pages: + <<: *pages_prepare + only: + refs: + - main -- GitLab