Skip to content

Commit aac5586

Browse files
Add webhook listener and deployment scripts with E2E testing
1 parent df8195c commit aac5586

File tree

7 files changed

+4351
-19
lines changed

7 files changed

+4351
-19
lines changed

deploy.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Fetch the current branch name
4+
BRANCH=$(git rev-parse --abbrev-ref HEAD)
5+
6+
# Vercel Deployment Hooks
7+
STAGING_HOOK="https://api.vercel.com/v1/integrations/deploy/prj_LwTioxQluhVclHaPEHgfqLZEOmdo/NawFP5WDjG"
8+
PRODUCTION_HOOK="https://api.vercel.com/v1/integrations/deploy/prj_LwTioxQluhVclHaPEHgfqLZEOmdo/DFBwbTv0kB"
9+
10+
if [[ "$BRANCH" == "main" ]]; then
11+
echo "Triggering production deployment..."
12+
curl -X POST $PRODUCTION_HOOK
13+
else
14+
echo "Triggering staging deployment for branch: $BRANCH"
15+
curl -X POST $STAGING_HOOK
16+
fi

0 commit comments

Comments
 (0)