Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
5356439c
Unverified
Commit
5356439c
authored
3 years ago
by
Kevin Wang
Browse files
Options
Download
Email Patches
Plain Diff
add: website/scripts/should-build.sh
parent
d36bf82c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
website/scripts/should-build.sh
+13
-0
website/scripts/should-build.sh
with
13 additions
and
0 deletions
+13
-0
website/scripts/should-build.sh
0 → 100644
+
13
-
0
View file @
5356439c
#!/bin/bash
# This is run during the website build step to determine if we should skip the build or not.
# More information: https://vercel.com/docs/platform/projects#ignored-build-step
if
[[
"
$VERCEL_GIT_COMMIT_REF
"
==
"stable-website"
]]
;
then
# Proceed with the build if the branch is stable-website
echo
"✅ - Build can proceed"
exit
1
;
else
# Check for differences in the website directory
git diff
--quiet
HEAD^ HEAD ./
fi
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment