From 53dfedebbfcd602b45968a86eb432e4fa645217c Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Sun, 24 Dec 2023 00:15:17 -0500 Subject: Update workflow for updating build version --- src/config.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/config.ts b/src/config.ts index 3fdcf24..b0ad1b0 100644 --- a/src/config.ts +++ b/src/config.ts @@ -6,9 +6,13 @@ export default function (eleventyConfig: any) { eleventyConfig.addPassthroughCopy({ "./src/static/": "/", }); + + // hook in configured build time for GH action to update eleventyConfig.addGlobalData("buildTimeEncoded", () => { return getTimestamp(Number(BuildInfo.version)); }); + + // ensure eleventy marks this config as watched, since it's typescript eleventyConfig.addWatchTarget("./src/config.ts"); return { -- cgit