ci: add vercel ignore build script

This commit is contained in:
Simon Chan 2021-12-23 10:34:41 +08:00
parent b4265c9c65
commit e219687ea6

View file

@ -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