1
0
mirror of https://gitlab.com/MisterBiggs/brain-quartz.git synced 2025-06-16 01:36:40 +00:00
brain-quartz/.gitlab-ci.yml

37 lines
632 B
YAML

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:
- git submodule sync --recursive
- git submodule update --init --recursive
- 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