From 31877de4fca437ffccabfc25a08438d52c935064 Mon Sep 17 00:00:00 2001 From: Elise Hinman Date: Mon, 22 Jul 2024 16:21:40 -0500 Subject: [PATCH] add an or statement to yml to build docs before deploy --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3148fd3..74af599 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,7 @@ image: ${ARTIFACTORY_URL}/docker-official-mirror/python:3.11 stages: - build - test-package - - test-docs + - build-docs - deploy - validate @@ -46,8 +46,8 @@ Test and Lint: - docs/build/ coverage: '/TOTAL.*\s+(\d+\%)/' -Test Documentation: - stage: test-docs +Build Documentation: + stage: build-docs script: # Install dependencies - apt-get update -y @@ -67,7 +67,7 @@ Test Documentation: paths: - docs/build/ rules: - - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"' + - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" || $CI_COMMIT_BRANCH == "main"' Deploy Documentation: image: ${ARTIFACTORY_URL}/docker-official-mirror/rocker/shiny-verse:4.1.2