Skip to content

Commit

Permalink
ci: use token from env
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-hosseini-deriv committed Jun 24, 2024
1 parent ac08379 commit 2851d83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/deploy-to-vercel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ runs:
env:
VERCEL_TOKEN: ${{ inputs.VERCEL_TOKEN }}
run: |
vercel pull --yes --token=$VERCEL_TOKEN
vercel build --cwd build --token=$VERCEL_TOKEN
vercel pull --yes --token=${{ env.VERCEL_TOKEN }}
vercel build --cwd build --token=${{ env.VERCEL_TOKEN }}
- name: Deploy to Vercel (Staging)
if: ${{ inputs.ENVIRONMENT == 'Staging' }}
Expand All @@ -37,7 +37,7 @@ runs:
VERCEL_PROJECT_ID: ${{ inputs.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ inputs.VERCEL_TOKEN }}
run: |
url="$(vercel deploy --prebuilt --cwd .vercel/output --token=$VERCEL_TOKEN)"
url="$(vercel deploy --prebuilt --cwd .vercel/output --token=${{ env.VERCEL_TOKEN }})"
vercel alias set "$url" staging-api.binary.sx
- name: Deploy to Vercel (Production)
Expand All @@ -48,5 +48,5 @@ runs:
VERCEL_PROJECT_ID: ${{ inputs.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ inputs.VERCEL_TOKEN }}
run: |
url="$(vercel deploy --prebuilt --cwd .vercel/output --token=$VERCEL_TOKEN)"
url="$(vercel deploy --prebuilt --cwd .vercel/output --token=${{ env.VERCEL_TOKEN }})"
vercel alias set "$url" api.binary.sx

0 comments on commit 2851d83

Please sign in to comment.