Skip to content

Commit 5430fda

Browse files
committed
add vercel build script
1 parent 512c8cb commit 5430fda

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

vercel_build.sh

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"
4+
5+
if [[ "$VERCEL_GIT_COMMIT_REF" == "staging" || "$VERCEL_GIT_COMMIT_REF" == "main" || "$VERCEL_GIT_COMMIT_REF" == "dev" ]] ; then
6+
# Proceed with the build
7+
echo "✅ - Build can proceed"
8+
exit 1;
9+
10+
else
11+
# Don't build
12+
echo "🛑 - Build cancelled"
13+
exit 0;
14+
fi

0 commit comments

Comments
 (0)