Skip to content

publish-event

publish-event #1421

name: Contentful Publish Trigger Deploy
on:
repository_dispatch:
types: [publish-event]
jobs:
deploy-production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: refs/heads/production # Ensure we're deploying production branch from webhook and cron builds.
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-comment: false
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
scope: ${{ secrets.VERCEL_ORG_ID }}
vercel-args: --prod