blob: 6a0a95ea7b7b60e90cf1bf6b889a9d0922d0fab9 (
plain) (
tree)
|
|
before_script:
- uname -a
image: node:16-buster
pages: # the job must be named pages
image: node:16-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
- 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/
artifacts:
paths:
- public # artifact path must be /public for GitLab Pages to pick it up
only:
- master
|