Add GitLab CI file

This commit is contained in:
Alex Gleason 2025-05-30 22:19:04 +02:00
parent be2d2d63fa
commit e0d94fae71
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

29
.gitlab-ci.yml Normal file
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