Skip to content

Run an incremental build on a CI server #2775

@zachleat

Description

@zachleat

This is almost there with 2.0 features.

We would need to:

  1. Cache the output folder between builds on a CI server like Netlify.
  2. Use git to find what files changed between the latest and the last build’s commit SHA (Charlie Groll suggested git diff {commitsha}^..)
  3. Set the incremental files in Eleventy. This is already available via a method on the Eleventy class, we would likely need to add support for multiple --input files on the CLI.
  4. Save the new latest successful build commit SHA back to the build cache for next time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions