Add GitLab CI file

This commit is contained in:
Alex Gleason committed 2025-05-30 22:19:04 +02:00
1 parent be2d2d63fa
commit e0d94fae71
1 file changed
+29
+29
View File
@@ -0,0 +1,29 @@
image: node:22
default:
interruptible: true
stages:
- build
- deploy
build:
stage: build
script:
- npm run build
only:
variables:
- $CI_DEFAULT_BRANCH != $CI_COMMIT_REF_NAME
pages:
stage: deploy
script:
- npm run build
- rm -rf public
- mv dist public
artifacts:
paths:
- public
only:
variables:
- $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME