publish-event #1421
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |