Skip to content

Commit d7f7681

Browse files
committed
Update the search indexes on Travis
1 parent 9ca3f52 commit d7f7681

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

script/build

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ git -C ./smokey rev-parse HEAD
4343

4444
rm -r _site/assets # remove old assets
4545

46-
JEKYLL_ENV=production bundle exec jekyll build --incremental --profile
46+
if [[ ! $DEV ]]; then
47+
JEKYLL_ENV=production bundle exec jekyll algolia push &
48+
JEKYLL_ENV=production bundle exec jekyll build --incremental --profile &
49+
wait
50+
else
51+
bundle exec jekyll build --incremental --profile
52+
fi
4753

4854
cd _site
4955
cd assets

0 commit comments

Comments
 (0)