stages: - build - deploy image: node:22 cache: # Cache modules in between jobs key: $CI_COMMIT_REF_SLUG paths: - .npm/ build: stage: build rules: - if: '$CI_COMMIT_REF_NAME == "v4"' before_script: - hash -r - npm ci --cache .npm --prefer-offline script: - npx quartz build artifacts: paths: - public tags: - gitlab-org-docker pages: stage: deploy rules: - if: '$CI_COMMIT_REF_NAME == "v4"' script: - echo "Deploying to GitLab Pages..." artifacts: paths: - public