Jekyll-build-pages running despite .nojekll file #23564
-
Recently I’ve seen new actions appearing in my githup pages repo, which runs Jekyll on my github pages site. This is the action involved, and this is presumably the announcement of this “feature”. I already have my own actions CI setup to run a (much newer) version of Jekyll, with plugins beyond the whitelisted set, and so on. I have no idea what the effect of running a second, differently configured and different version of Jekyll on the output files will be. I do not want to run Jekyll a second time on the output files of my CI. How I can disable this? I have a |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
👋 if you are publishing pages from |
Beta Was this translation helpful? Give feedback.
-
Hello @travisdowns, Like @YiMysty pointed below, your Even before we moved to running your build/deployment on Actions that means Jekyll was running on your static assets. If you relocate the Let us know if you run into further issues! |
Beta Was this translation helpful? Give feedback.
-
Thanks, that was exactly it! It did cross my mind that this might be the case, but everything I could find said that the file should be in the root of the repository (but perhaps this is just because publishing out of the docs folder is uncommon). It doesn’t seem like there is any good documentation on After making the change, I no longer get the pointless Jekyll build. I do look forward to the day I can customize the behavior of the bot, because the way it is now the flow is fairly redundant for my use case: I do the whole build and upload the artifact then push it to |
Beta Was this translation helpful? Give feedback.
-
@travisdowns Good news, your hopes will come true in a few months. We are actively working on exactly that! |
Beta Was this translation helpful? Give feedback.
-
Thanks Yoann, looking forward to it! Just wanted to add, in case anyone else runs across this thread: I did actually have a
include .nojekyll file in _site
Including this file will present GitHub from redundantly running Jekyll on the g…enerated site (we have our own build pipeline). |
Beta Was this translation helpful? Give feedback.
-
Wasn't it working previously if the |
Beta Was this translation helpful? Give feedback.
👋 if you are publishing pages from
docs
folder, the.nojekyll
file should be put underdocs
folder instead of repo’s root folder