Attempt to fix deploy preview build

This commit is contained in:
dannyrb 2019-07-16 09:32:14 -04:00
parent 2279e555a3
commit fd720bd4d7
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ cd "$(dirname "$0")"
# Helpful to verify which versions we're using # Helpful to verify which versions we're using
yarn -v yarn -v
node -v node -v
yarn config set workspaces-experimental true
# Install GitBook CLI # Install GitBook CLI
echo 'Installing Gitbook CLI' echo 'Installing Gitbook CLI'
@ -60,7 +61,7 @@ mkdir ./docs/latest/_book/demo/
# Install build deps and all monorepo package dependencies. Yarn Workspaces # Install build deps and all monorepo package dependencies. Yarn Workspaces
# should also symlink all projects appropriately # should also symlink all projects appropriately
yarn install yarn install --no-ignore-optional --pure-lockfile
# Navigate to our Viewer project # Navigate to our Viewer project
cd ./platform/viewer/ cd ./platform/viewer/

View File

@ -33,7 +33,7 @@
[context.deploy-preview] [context.deploy-preview]
base = "" base = ""
publish = "docs/latest/_book/" publish = "docs/latest/_book/"
command = ".netlify/build-deploy-preview.sh" command = "chmod +x .netlify/build-deploy-preview.sh && .netlify/build-deploy-preview.sh"
# Redirects and headers are GLOBAL for all builds they do not get scoped to # Redirects and headers are GLOBAL for all builds they do not get scoped to
# contexts no matter where you define them in the file. # contexts no matter where you define them in the file.