From 87d6f89436ff97d4addda73df92ba5ee6b12b20b Mon Sep 17 00:00:00 2001 From: rschoene <rene.schoene@tu-dresden.de> Date: Wed, 12 Oct 2022 17:02:20 +0200 Subject: [PATCH] 3.0.0 - prepare new release - always build pages, but only publish them on main --- .gitlab-ci.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 95c139d..48ac46a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -93,7 +93,7 @@ ragdoc_view: paths: - "pages/docs/ragdoc" -pages: +build_pages: image: python:3.10.0-bullseye stage: publish needs: @@ -106,6 +106,14 @@ pages: artifacts: paths: - public/ - only: - - dev - - main + +pages: + stage: publish + needs: + - build_pages + script: [ "true" ] + artifacts: + paths: + - public + rules: + - if: '$CI_COMMIT_BRANCH == "main"' -- GitLab