Deploy trigger flow
The webhook only queues a verification run. The worker performs the browser checks separately.
The normal setup is:
- Copy the project webhook URL from the Webhook tab on the project detail page.
- Store
AFTERLANE_PROJECT_IDandAFTERLANE_WEBHOOK_SECRETin your CI secrets. - Fire the webhook after a successful deploy step.
What the webhook does
- validates the project secret
- queues a run with the webhook trigger
- hands off execution to the worker
GitHub Actions example
- name: Trigger Afterlane verification
if: success()
run: |
curl -X POST "https://afterlane.co/api/webhooks/deploy/${{ secrets.AFTERLANE_PROJECT_ID }}" -H "Content-Type: application/json" -H "X-Afterlane-Webhook-Secret: ${{ secrets.AFTERLANE_WEBHOOK_SECRET }}" -d '{
"provider": "github_actions",
"branch": "${{ github.ref_name }}",
"commitSha": "${{ github.sha }}",
"repository": "${{ github.repository }}",
"workflow": "${{ github.workflow }}"
}'