Move build steps into netlify.toml
This commit is contained in:
parent
ba68e5185d
commit
e3f81ebe77
21
deploy.sh
21
deploy.sh
|
@ -1,21 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
# Build script for deploying on Netlify.
|
||||
#
|
||||
# "composer install" and "yarn install" are run automatically, so there's no
|
||||
# need to add them here.
|
||||
|
||||
# Run the tests to ensure that nothing is broken.
|
||||
vendor/bin/phpunit
|
||||
|
||||
# Generate the site once with no assets to that PurgeCSS has something to look
|
||||
# at.
|
||||
vendor/bin/sculpin generate -e prod
|
||||
|
||||
# Generate the front-end assets.
|
||||
yarn build
|
||||
|
||||
# Re-generate the again with the assets in the correct location.
|
||||
vendor/bin/sculpin generate -e prod
|
|
@ -1,3 +1,3 @@
|
|||
[build]
|
||||
command = "./deploy.sh"
|
||||
command = "vendor/bin/sculpin generate -e prod && yarn prod && cp -R source/build output_prod"
|
||||
publish = "output_prod"
|
||||
|
|
Loading…
Reference in a new issue