Adding GitLab CI config to build using pages

This commit is contained in:
Jeff Avallone 2019-01-01 08:51:29 -05:00
parent 539a907076
commit 3682d4ce81

27
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,27 @@
image: node:latest
variables:
BUILD_PATH: ./public
stages:
- build
cache:
paths:
- node_modules/
before_script:
- yarn install
pages:
stage: build
variables:
GA_PROP: $PROD_GA_PROPERTY
script:
- gulp build
- gzip -k -6 $(find public/ -type f)
artifacts:
paths:
- public
only:
- master