Adding GitLab CI config to build using pages
This commit is contained in:
parent
539a907076
commit
3682d4ce81
27
.gitlab-ci.yml
Normal file
27
.gitlab-ci.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user