Skip to content

Commit 1436028

Browse files
committed
Build: Set JEKYLL_ENV=production
Regression from v2.1.0 (2750b88), which added support for a dev mode to search.html based on `jekyll.environment`. However, I mistakenly thought this defaults to "production" for `jekyll build` and is only defaulting to "development" for `jekyll serve`. It actually defaults universally to "development" unless set differently by the CI build.
1 parent 3d6228c commit 1436028

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/github-pages.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
- name: Jekyll build
3232
# If your site is in a subdirectory
3333
# working-directory: ./
34+
env:
35+
JEKYLL_ENV: production
3436
run: bundle exec jekyll build
3537

3638
- name: Push to branch

0 commit comments

Comments
 (0)