Skip to content

CI deploys the output of jekyll serve, not of the jekyll build step #221

Description

@aistomin

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions