From 592d5754eb1d216e5e05657d5f05cc7db4dc77d8 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Fri, 5 May 2023 11:24:00 +0100 Subject: [PATCH] Change branch detection --- .build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.build.yml b/.build.yml index 9352285..9e711b0 100644 --- a/.build.yml +++ b/.build.yml @@ -22,9 +22,8 @@ tasks: # Get current git branch echo "Deploying to Vercel" - export CI_BRANCH=$(git rev-parse --abbrev-ref HEAD) # If trunk branch, use --prod, otherwise just deploy - if [ "$CI_BRANCH" = "trunk" ]; then + if [ "$(git rev-parse origin/trunk)" != "$(git rev-parse HEAD)" ]; then echo "Deploying to production" vercel deploy --prod --token $VERCEL_API_TOKEN else