2019-01-01 14:03:06 +00:00
|
|
|
image: node:8
|
2019-01-01 13:51:29 +00:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- yarn install
|
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: build
|
|
|
|
variables:
|
|
|
|
GA_PROP: $PROD_GA_PROPERTY
|
|
|
|
script:
|
2019-01-01 14:08:39 +00:00
|
|
|
- BUILD_PATH="$(pwd)/public" yarn gulp build
|
2019-01-01 14:13:24 +00:00
|
|
|
- rm -r public/__discard__
|
2019-01-01 13:51:29 +00:00
|
|
|
- gzip -k -6 $(find public/ -type f)
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
|
|
|
- master
|