aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2023-12-24 00:15:17 -0500
committerKevin J Hoerr <kjhoerr@protonmail.com>2023-12-24 00:15:17 -0500
commit53dfedebbfcd602b45968a86eb432e4fa645217c (patch)
tree445e70e4a139f4597ab7c4f8c4422bb6b6e1b557 /src
parent411f0c09707646bc09865e9a61e834287dfd008b (diff)
downloadsubmelon.dev-53dfedebbfcd602b45968a86eb432e4fa645217c.tar.gz
submelon.dev-53dfedebbfcd602b45968a86eb432e4fa645217c.tar.bz2
submelon.dev-53dfedebbfcd602b45968a86eb432e4fa645217c.zip
Update workflow for updating build version
Diffstat (limited to 'src')
-rw-r--r--src/config.ts4
1 files changed, 4 insertions, 0 deletions
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 {