memfault / interrupt

A community for embedded software makers.
https://interrupt.memfault.com
Other
464 stars 134 forks source link

Create a `_config_preview.yml` for preview builds #437

Closed tyhoff closed 8 months ago

tyhoff commented 8 months ago

This will enable our Cloudflare builder to publish posts that are in the future and not yet published on our production build

JEKYLL_BUILD_CONFIG_PARAM=",_config_preview.yml"
bundle exec jekyll build --config _config.yml${JEKYLL_BUILD_CONFIG_PARAM}

For production, JEKYLL_BUILD_CONFIG_PARAM will be empty For preview, JEKYLL_BUILD_CONFIG_PARAM will contain the above value.

Wrap this into a cloudflare_build.sh script that is used by Cloudflare to build