diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c575567d2359ef80badf35788ee35e1a89d4af8e..9bd456eb400168ac7520fdae5a8c81a35ab09819 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