Skip to content

Commit

Permalink
add an or statement to yml to build docs before deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ehinman committed Jul 22, 2024
1 parent 68b3ed4 commit 31877de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ image: ${ARTIFACTORY_URL}/docker-official-mirror/python:3.11
stages:
- build
- test-package
- test-docs
- build-docs
- deploy
- validate

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 31877de

Please sign in to comment.