Skip to content

Commit

Permalink
Update vercel-build-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
admdly committed Nov 24, 2023
1 parent b27b98a commit 1012bc7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/vercel-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ env:
VERCEL_ORG_ID: ${{ secrets.vercel_org_id }}
VERCEL_PROJECT_ID: ${{ secrets.vercel_project_id }}

concurrency:
group: deploy-${{ inputs.environment }}

jobs:
build-deploy:
name: Build and Deploy (${{ inputs.environment }})
Expand All @@ -42,10 +39,8 @@ jobs:
id: vars
run: |
if [ ${{ inputs.prod_deployment }} == true ]; then
{
"vercel_env=production"
"vercel_prod=--prod"
} >> $GITHUB_OUTPUT
echo "vercel_env=production" >> $GITHUB_OUTPUT
echo "vercel_prod=--prod" >> $GITHUB_OUTPUT
else
echo "vercel_env=preview" >> $GITHUB_OUTPUT
fi
Expand All @@ -55,7 +50,7 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=${{ steps.vars.outputs.vercel_env }} --token=${{ secrets.vercel_token }}
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.vercel_token }}
run: vercel build ${{ steps.vars.outputs.vercel_prod }} --token=${{ secrets.vercel_token }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt ${{ steps.vars.outputs.vercel_prod }} --token=${{ secrets.vercel_token }} > vercel-out.txt
- name: Set Environment URL
Expand Down

0 comments on commit 1012bc7

Please sign in to comment.