-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use script to determine to build in vercel or not
Signed-off-by: Vu Nguyen <[email protected]>
- Loading branch information
Showing
3 changed files
with
7 additions
and
11 deletions.
There are no files selected for viewing
13 changes: 6 additions & 7 deletions
13
bin/ignore-build-step.sh → apps/vubnguyen/bin/ignore-build-step.sh
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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
#!/bin/bash | ||
|
||
echo "VERCEL_ENV: $VERCEL_ENV" | ||
env | ||
echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF" | ||
|
||
if [[ "$VERCEL_ENV" == "production" ]]; then | ||
# Proceed with the build | ||
echo "✅ - Build can proceed" | ||
exit 1 | ||
|
||
else | ||
if [[ "$VERCEL_GIT_COMMIT_REF" == "gh-pages" ]]; then | ||
# Don't build | ||
echo "🛑 - Build cancelled" | ||
exit 0 | ||
else | ||
# Proceed with the build | ||
echo "✅ - Build can proceed" | ||
exit 1 | ||
fi |
This file was deleted.
Oops, something went wrong.
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