2020-04-24 16:23:57 +00:00
|
|
|
|
|
|
|
pages: # the job must be named pages
|
|
|
|
image: node:latest
|
|
|
|
stage: deploy
|
|
|
|
script:
|
2020-04-24 16:34:14 +00:00
|
|
|
#- npm ci
|
2020-04-24 16:39:08 +00:00
|
|
|
- npm install --progress=false
|
2020-04-24 16:50:37 +00:00
|
|
|
- npm run build
|
2020-04-24 16:23:57 +00:00
|
|
|
- mv public public-vue # GitLab Pages hooks on the public folder
|
|
|
|
- mv dist public # rename the dist folder (result of npm run build)
|
|
|
|
# optionally, you can activate gzip support wih the following line:
|
|
|
|
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec gzip -f -k {} \;
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public # artifact path must be /public for GitLab Pages to pick it up
|
|
|
|
only:
|
|
|
|
- master
|