Adds script to regulate staging deploys (#1979)

pull/1974/head^2
Omar López 2022-02-24 12:17:49 -07:00 committed by GitHub
parent 795423ae55
commit c6169607ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

15
scripts/staging-deploy.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"
if [[ "$VERCEL_GIT_COMMIT_REF" == "staging" ]] ; then
# Proceed with the build
echo "✅ - Build can proceed"
./vercel.sh
exit 1;
else
# Don't build
echo "🛑 - Build cancelled"
exit 0;
fi