blob: b8ab9198e11595651bf7080cdaf82752acbda49a (
plain) (
tree)
|
|
before_script:
- uname -a
image: node:16-buster
pages: # the job must be named pages
image: node:16-buster
stage: deploy
tags:
- linux
script:
- npm install yarn
- echo $PATH
- export PATH="$(yarn global bin):$PATH"
- echo $PATH
- yarn global add @vue/cli
- yarn install
- yarn build
- vue --version
- yarn deploy
- rm -rf public
- mkdir -p public
- 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
|