From 4b599c242140cbc9d35d98b9f15f2ad13051b45e Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 2 Jun 2024 09:58:54 -0400 Subject: run indexnow script automatically --- deploy-static | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'deploy-static') diff --git a/deploy-static b/deploy-static index 64086281..6afdedad 100755 --- a/deploy-static +++ b/deploy-static @@ -24,7 +24,7 @@ rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-tmp/ static- for f in static-production/**.*(br|gz); do touch -r "${f%.*}" "$f" done -./generate-sitemap +changed="$(./generate-sitemap)" xmllint --noblanks static-tmp/sitemap.xml --output static-tmp/sitemap.xml brotli -f static-tmp/sitemap.xml zopfli static-tmp/sitemap.xml @@ -58,3 +58,7 @@ for server in ${servers[@]}; do echo active is now $target echo done + +if [[ -n "$changed" ]]; then + ./indexnow <<< "$changed" +fi -- cgit v1.3.1