mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2025-08-27 13:09:22 +00:00
Add GitLab CI file
This commit is contained in:
parent
be2d2d63fa
commit
e0d94fae71
29
.gitlab-ci.yml
Normal file
29
.gitlab-ci.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user