Skip to content

Commit

Permalink
ci: add vercel token
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-hosseini-deriv committed Jun 25, 2024
1 parent 82190ae commit 6c31fde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/deploy-to-vercel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand All @@ -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' }}
Expand All @@ -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 }}

0 comments on commit 6c31fde

Please sign in to comment.