-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from alleslabs/ignore-preview-build
Ignore building step
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# This script will exit if the branch is not main on Vercel production deploys | ||
|
||
if [[ "$VERCEL_GIT_COMMIT_REF" != "main" ]] ; then | ||
# Don't build | ||
echo "🛑 - Build cancelled" | ||
exit 0; | ||
|
||
else | ||
# Proceed with the build | ||
echo "✅ - Build can proceed" | ||
exit 1; | ||
fi |
48f4af9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
celatone-frontend-staging – ./
celatone-frontend-staging-git-develop-alles-labs.vercel.app
celatone-frontend-staging.vercel.app
osmosis-staging.celat.one
celatone-frontend-staging-alles-labs.vercel.app