diff --git a/README.md b/README.md index a9151f2..921cd4c 100644 --- a/README.md +++ b/README.md @@ -39,21 +39,21 @@ $ . completions/blog.bash - Generate full-on static site ```bash -$ CI_BUILD=1 ./scripts/blog static +$ CI=1 ./scripts/blog static ``` - Only build blogs ```bash -$ CI_BUILD=1 ./scripts/blog static +$ CI=1 ./scripts/blog static ``` -`CI_BUILD` environment variable is optional, -though setting it in a build/ci environment is good +`CI` environment variable is optional, +though setting it in a build/CI environment is good to save time on some operations that are useless in that context, for example sorting blogs. -`CI_BUILD` can have any value. +`CI` can have any value. ## The API and hidden blogs diff --git a/netlify.toml b/netlify.toml index 94f4363..bf72835 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build] - command = "CI_BUILD=1 python3 ./scripts/blog static" + command = "python3 ./scripts/blog static" [[redirects]] from = "/git/*" diff --git a/scripts/blog b/scripts/blog index 6645a3a..1234b5b 100755 --- a/scripts/blog +++ b/scripts/blog @@ -688,7 +688,7 @@ def main() -> int: "TIME", ) - not_ci_build = not os.getenv("CI_BUILD") + not_ci_build = not os.getenv("CI") if config["blogs"] and not_ci_build: log("Sorting blogs by creation time...", "CLEANUP")