From e269ef18f9d952d2fe0e309a59cf72804348e501 Mon Sep 17 00:00:00 2001 From: Benjamin Treels <benjamin.treels.etu@univ-lille.fr> Date: Mon, 1 Apr 2024 22:21:41 +0200 Subject: [PATCH] Update gitlab ci --- .gitlab-ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c575567..9bd456e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,15 @@ +# The Docker image that will be used to build your app image: node:latest - pages: - stage: deploy script: - npm install - npm run build - mv ./build public artifacts: paths: + # The folder that contains the files to be exposed at the Page URL - public - only: - - master \ No newline at end of file + rules: + # This ensures that only pushes to the default branch will trigger + # a pages deploy + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH -- GitLab