From 1d8899c38227df90861c9f611a3b25e8717ef9b6 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Fri, 5 May 2023 11:30:10 +0100 Subject: [PATCH] Swap comparison logic --- .build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build.yml b/.build.yml index 4187058..d49ceee 100644 --- a/.build.yml +++ b/.build.yml @@ -24,7 +24,7 @@ tasks: echo "Deploying to Vercel" git fetch origin trunk # If trunk branch, use --prod, otherwise just deploy - if [ "$(git rev-parse origin/trunk)" != "$(git rev-parse HEAD)" ]; then + if [ "$(git rev-parse origin/trunk)" = "$(git rev-parse HEAD)" ]; then echo "Deploying to production" vercel deploy --prod --token $VERCEL_API_TOKEN else