diff --git a/common/scripts/vercel-should-deploy.sh b/common/scripts/vercel-should-deploy.sh new file mode 100644 index 00000000..3a94bce4 --- /dev/null +++ b/common/scripts/vercel-should-deploy.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF" + +if [[ "$VERCEL_GIT_COMMIT_REF" == "gh-pages" ]] ; then + # Don't build + echo "🛑 - Build cancelled" + exit 0; +else + # Proceed with the build + echo "✅ - Build can proceed" + exit 1; +fi