Update deploy preview script
This commit is contained in:
parent
31bfcdc0f1
commit
6712809393
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
# This script is triggered on every new PR (see netlify.toml for details)
|
||||
# It will create a live preview of the PR
|
||||
set -e
|
||||
set -ex
|
||||
|
||||
# Environment variables exposed by Netlify:
|
||||
# https://www.netlify.com/docs/continuous-deployment/#build-environment-variables
|
||||
|
|
@ -11,6 +11,7 @@ set -e
|
|||
# We build a very simple preview if no change were made to the docs
|
||||
cd ./docs
|
||||
if ! git diff --name-status master | grep 'docs/' 1>/dev/null; then
|
||||
ls
|
||||
mkdir -p ./dist
|
||||
echo "No deploy preview available as this PR does not change the documentation." > ./dist/index.html
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue