summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..5ed9e7c
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,20 @@
+before_script:
+ - uname -a
+image: node:15-buster
+
+pages: # the job must be named pages
+ image: node:15-buster
+ stage: deploy
+ tags:
+ - linux
+ script:
+ - npm install yarn
+ - yarn deploy
+ - mv dist public # rename the dist folder (result of npm run build)
+ - find public/
+ artifacts:
+ paths:
+ - public # artifact path must be /public for GitLab Pages to pick it up
+ only:
+ - master
+