From c8ab5ef4f66b7c13a362fc2418964a4c1d3524a4 Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 1 Jul 2024 16:57:03 +0300 Subject: [PATCH] solid-start-deploy --- deploy.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/deploy.sh b/deploy.sh index 9261d0d8..dbcafce1 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,8 +1,7 @@ -if [ - "$(git rev-parse --abbrev-ref HEAD)" = "router-upgrade" - ] || [ - "$(git rev-parse --abbrev-ref HEAD)" = "feature/rating" - ]; -then exit 1; -else exit 0; +if [ "$VERCEL_GIT_COMMIT_REF" = "router-upgrade" ] || [ "$VERCEL_GIT_COMMIT_REF" = "feature/rating" ]; then + echo "Building on solid start" + exit 1 +else + echo "Not on solid start" + exit 0 fi