Skip to content

Set headers to allow access from any origin #47

Set headers to allow access from any origin

Set headers to allow access from any origin #47

Workflow file for this run

name: "Deploy to Vercel"
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy to Vercel
uses: amondnet/[email protected]
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
# use --prod if it is a push to main, otherwise it is a preview
vercel-args: ${{ github.event_name != 'pull_request' && '--prod' || '' }}