From 8b4ce91fefef68ace34f88f225f8465e7d6b0aaa Mon Sep 17 00:00:00 2001 From: zomars Date: Fri, 19 May 2023 13:37:19 -0700 Subject: [PATCH] Add missing production condition for deploy script --- scripts/vercel-deploy.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/vercel-deploy.sh b/scripts/vercel-deploy.sh index e9ef0538b3..689616931c 100755 --- a/scripts/vercel-deploy.sh +++ b/scripts/vercel-deploy.sh @@ -17,6 +17,9 @@ if [ "$GITHUB_ACCESS_TOKEN" == "" ]; then fi # We add an exception to test on staging +if [ "$VERCEL_GIT_COMMIT_REF" == "production" ]; then + BRANCH_TO_CLONE="-b $VERCEL_GIT_COMMIT_REF" +fi if [ "$VERCEL_GIT_COMMIT_REF" == "staging" ]; then BRANCH_TO_CLONE="-b $VERCEL_GIT_COMMIT_REF" fi