From 6c31fde6351edd1765626d7f22c5f2a14b7a5705 Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Tue, 25 Jun 2024 13:08:47 +0800 Subject: [PATCH] ci: add vercel token --- .github/actions/deploy-to-vercel/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/deploy-to-vercel/action.yml b/.github/actions/deploy-to-vercel/action.yml index fadc7b5b8..e2db7a4bf 100644 --- a/.github/actions/deploy-to-vercel/action.yml +++ b/.github/actions/deploy-to-vercel/action.yml @@ -29,7 +29,7 @@ runs: shell: bash run: | vercel pull --yes --token=${{ env.VERCEL_TOKEN }} - vercel build --yes + vercel build --yes --cwd build - name: Deploy to Vercel (Staging) if: ${{ inputs.ENVIRONMENT == 'Staging' }} @@ -40,7 +40,7 @@ runs: VERCEL_TOKEN: ${{ inputs.VERCEL_TOKEN }} run: | url="$(vercel deploy --prebuilt --token=${{ env.VERCEL_TOKEN }})" - vercel alias set "$url" staging-api.binary.sx + vercel alias set "$url" staging-api.binary.sx --token=${{ env.VERCEL_TOKEN }} - name: Deploy to Vercel (Production) if: ${{ inputs.ENVIRONMENT == 'Production' }} @@ -51,4 +51,4 @@ runs: VERCEL_TOKEN: ${{ inputs.VERCEL_TOKEN }} run: | url="$(vercel deploy --prebuilt --token=${{ env.VERCEL_TOKEN }})" - vercel alias set "$url" api.binary.sx + vercel alias set "$url" api.binary.sx --token=${{ env.VERCEL_TOKEN }}