diff --git a/docs/netlify-ignore-command.sh b/docs/netlify-ignore-command.sh index b9da1bd3982c..aaf4402220ab 100755 --- a/docs/netlify-ignore-command.sh +++ b/docs/netlify-ignore-command.sh @@ -1,6 +1,6 @@ #!/bin/sh -# We deploy main and version branches only +# We deploy main, version branches and deploy previews only if echo $HEAD | grep -E '^(main|v[[:digit:]]+\.([[:digit:]])+-branch)$' || echo $CONTEXT | grep '^deploy-preview$' then echo "Head '$HEAD' matches a deployed branch, or context is deploy preview, checking for git changes."