Skip to content

Commit f50a2db

Browse files
committed
fix build command, skip deploy previews by default
1 parent 27173b2 commit f50a2db

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build]
2-
command = "jekyll algolia && yarn production"
2+
command = "jekyll algolia && yarn build"
33
# Ignore builds unless [netlify-build] is present in commit message
44
# ignore = "git log -1 --pretty=%B | ( ! grep -q '\[netlify\-build\]' )"
55
# Ignore if [netlify-ignore] is present

scripts/ignore.sh

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,31 @@ if echo $log | grep -1 'netlify\-build'; then
1111
echo "Force build becuase Netlify is a benevolent overseer"
1212
exit 1
1313
# make sure we don't build for changes that are not in src/
14-
elif git diff --quiet $COMMIT_REF $CACHED_COMMIT_REF -- src/; then
15-
echo "No changes to src/ detected, skipping"
16-
exit
17-
# ignore for simple typo fixes
18-
elif echo "$log" | grep -q 'typo'; then
19-
echo "Build ignored because 'typo' is in the commit message."
20-
exit
21-
# ignore link / url updates
22-
elif echo "$log" | grep -q 'link'; then
23-
echo "Build ignored because 'link' is in the commit message."
24-
exit
25-
# ignore when the ignore tag is explicitly added
26-
elif echo "$log" | grep -q 'netlify\-ignore'; then
27-
echo "Build ignored because it was requested."
28-
exit
29-
# ignore dependabot updates
30-
elif echo "$log" | grep -q 'dependabot'; then
31-
echo "Ignoring dependabot update"
32-
exit
33-
# ignore when master is merged into a branch
34-
elif echo "$log" | grep -q 'Merge branch \Smaster\S'; then
35-
echo "Build ignored because it's only an update from the main branch."
36-
exit
37-
else
38-
echo "Nothing to ignore here, building!"
39-
exit 1
14+
# elif git diff --quiet $COMMIT_REF $CACHED_COMMIT_REF -- src/; then
15+
# echo "No changes to src/ detected, skipping"
16+
# exit
17+
# # ignore for simple typo fixes
18+
# elif echo "$log" | grep -q 'typo'; then
19+
# echo "Build ignored because 'typo' is in the commit message."
20+
# exit
21+
# # ignore link / url updates
22+
# elif echo "$log" | grep -q 'link'; then
23+
# echo "Build ignored because 'link' is in the commit message."
24+
# exit
25+
# # ignore when the ignore tag is explicitly added
26+
# elif echo "$log" | grep -q 'netlify\-ignore'; then
27+
# echo "Build ignored because it was requested."
28+
# exit
29+
# # ignore dependabot updates
30+
# elif echo "$log" | grep -q 'dependabot'; then
31+
# echo "Ignoring dependabot update"
32+
# exit
33+
# # ignore when master is merged into a branch
34+
# elif echo "$log" | grep -q 'Merge branch \Smaster\S'; then
35+
# echo "Build ignored because it's only an update from the main branch."
36+
# exit
37+
# else
38+
echo "Build skipped"
39+
exit 0
4040
fi
4141

0 commit comments

Comments
 (0)