From af0ffa2796634de39d5da9dbf47634be377f2046 Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Tue, 3 Jun 2025 12:45:17 -0600 Subject: [PATCH] build --- .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e1dc3de --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +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