summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml22
1 files changed, 4 insertions, 18 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6a0a95e..e08309a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,30 +1,16 @@
before_script:
- uname -a
-image: node:16-buster
pages: # the job must be named pages
- image: node:16-buster
+ image: node:12-buster
stage: deploy
script:
- - rm -rf node_modules
- - rm -rf */node_modules
- - npm install yarn
- - echo $PATH
- - export PATH="$(yarn global bin):$PATH"
- - echo $PATH
- - yarn global add @vue/cli
+ - npm install --no-package-lock yarn
- yarn install
- - vue --version
- - npm i -g @vue/cli-service
- - yarn build
- yarn deploy
- rm -rf public
- - mkdir -p public
- - mv dist/* public # rename the dist folder (result of npm run build)
- - find public/
+ - mv dist public
+ - find public
artifacts:
paths:
- public # artifact path must be /public for GitLab Pages to pick it up
- only:
- - master
-