From 968ef436af1300eb112cb6b68c86d869d64a4ae6 Mon Sep 17 00:00:00 2001 From: aduvermy <arnaud.duvermy@ens-lyon.fr> Date: Wed, 13 Mar 2024 10:52:35 +0100 Subject: [PATCH] build page only on master --- .gitlab-ci.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a71e4db..e58a588 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,15 +17,6 @@ devtools-check: script: - R -e 'devtools::check(error_on = "error")' -pages: - stage: build - script: - - R -e "devtools::document(); pkgdown::build_site(override = list(destination = 'public/'))" - artifacts: - paths: - - public/ - - unit_test_coverage: stage: test allow_failure: true @@ -40,3 +31,15 @@ unit_test_coverage: artifacts: paths: - public/ + + +pages: + stage: build + script: + - R -e "devtools::document(); pkgdown::build_site(override = list(destination = 'public/'))" + artifacts: + paths: + - public/ + only: + variables: + - $CI_COMMIT_REF_NAME == "master" -- GitLab