From b6fc82b491c82f1006e644f8171243653296a245 Mon Sep 17 00:00:00 2001 From: Anson Date: Mon, 9 Oct 2023 01:32:22 -0600 Subject: [PATCH] always build but don't always publish --- docs/.gitlab-ci.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/docs/.gitlab-ci.yml b/docs/.gitlab-ci.yml index aea9f4e..18464e1 100644 --- a/docs/.gitlab-ci.yml +++ b/docs/.gitlab-ci.yml @@ -1,6 +1,7 @@ image: python:3.11 -pages: - stage: deploy + +build_site: + stage: build script: - cd ./docs - pip install -r requirements.txt @@ -8,5 +9,15 @@ pages: artifacts: paths: - public - # rules: - # - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' + +pages: + stage: deploy + script: + - echo "Publishing site..." + dependencies: + - build_site + artifacts: + paths: + - public + rules: + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'