ci: Update vercel action to deploy pull requests (#80)

This commit is contained in:
Jonah Lawrence 2022-10-23 10:02:02 -06:00 committed by GitHub
parent bc520075c7
commit 9f8ef9972f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
@ -19,4 +20,5 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-args: --prod
# use --prod if it is a push to main, otherwise it is a preview
vercel-args: ${{ github.event_name != 'pull_request' && '--prod' || '' }}