From 3c18c8e738accc5d1dead0bee3f70ccc8bb98a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org> Date: Thu, 3 Jun 2021 12:04:20 +0200 Subject: [PATCH] MAINT: update documentation only in main --- .gitlab-ci.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab77075..bd2016e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -76,25 +76,23 @@ build-testenv: - docker push $CI_REGISTRY_IMAGE # Build the sphinx documentation and make it ready for deployment by Gitlab Pages -# documentation: -# stage: deploy - # Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages -pages: - tags: [ docker ] +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" script: - echo "Deploying" - - cat doc/index.rst - make doc - cp -r build/doc/html public artifacts: paths: - public +pages: + <<: *pages_prepare + only: + refs: + - main + -- GitLab