Problem
In the test job, jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" runs first, but jekyll serve then rebuilds _site without that flag, and upload-pages-artifact uploads the regenerated output. The explicit build step's output is discarded. Harmless today because the custom domain makes base_path empty, but a trap if that ever changes.
Proposal
Serve with --skip-initial-build (and --no-watch) so the tested and deployed _site is exactly what jekyll build produced, or pass the same --baseurl to both commands.
Please read how to contribute
Problem
In the
testjob,jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"runs first, butjekyll servethen rebuilds_sitewithout that flag, andupload-pages-artifactuploads the regenerated output. The explicit build step's output is discarded. Harmless today because the custom domain makesbase_pathempty, but a trap if that ever changes.Proposal
Serve with
--skip-initial-build(and--no-watch) so the tested and deployed_siteis exactly whatjekyll buildproduced, or pass the same--baseurlto both commands.Please read how to contribute