Commit cab70f90 authored by Lukasz Starosta's avatar Lukasz Starosta

Fix public folder gatsby build

parent bce0e54c
Pipeline #187113726 passed with stages
in 8 minutes and 25 seconds
......@@ -14,24 +14,24 @@ before_script:
- cd lib/
stages:
- build
- test
# - build
# - test
- pages
build:
stage: build
script:
- npm install
- npm run build
artifacts:
paths:
- lib
# build:
# stage: build
# script:
# - npm install
# - npm run build
# artifacts:
# paths:
# - lib
test:
stage: test
script:
- npm install
- npm run test
# test:
# stage: test
# script:
# - npm install
# - npm run test
pages:
stage: pages
......@@ -39,6 +39,8 @@ pages:
- cd ../pages
- npm install
- ./node_modules/.bin/gatsby build --prefix-paths
- rm -rf ../public
- mv public ..
- cd ../lib
- npm install
- npm run build
......@@ -46,5 +48,5 @@ pages:
artifacts:
paths:
- public
only:
- master
# only:
# - master
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment