ci: Update vercel action to deploy pull requests (#80)
This commit is contained in:
parent
bc520075c7
commit
9f8ef9972f
|
@ -4,6 +4,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -19,4 +20,5 @@ jobs:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
|
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
|
||||||
vercel-project-id: ${{ secrets.VERCEL_PROJECT_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' || '' }}
|
||||||
|
|
Loading…
Reference in New Issue