From 312d4f2cf77eb213ad75d9c44bc29ba7b747ddc3 Mon Sep 17 00:00:00 2001 From: KoalaDev <6156589+Shik3i@users.noreply.github.com> Date: Tue, 16 Jun 2026 06:11:13 +0200 Subject: [PATCH] chore: update sitemap lastmod dates, automate in release CI - Update all sitemap entries from 2026-06-09 to 2026-06-16. - Add sed step in release workflow to auto-update sitemap dates on every tagged release, so the sitemap never goes stale. --- .github/workflows/release.yml | 6 +++++- website/sitemap.xml | 34 +++++++++++++++++----------------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a066407..37cd21e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -98,13 +98,17 @@ jobs: sed -i "s/v[0-9]\+\.[0-9]\+\.[0-9]\+/v$VERSION/g" README.md echo " ✓ README.md -> v$VERSION" + # 7. website/sitemap.xml — lastmod dates + sed -i "s/[0-9-]*<\/lastmod>/$(date +%Y-%m-%d)<\/lastmod>/g" website/sitemap.xml + echo " ✓ website/sitemap.xml -> lastmod $(date +%Y-%m-%d)" + echo "Version injection complete." - name: Commit and push version updates back to main run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - git add extension/manifest.base.json shared/constants.js package.json website/version.json website/template.html README.md + git add extension/manifest.base.json shared/constants.js package.json website/version.json website/template.html README.md website/sitemap.xml git commit -m "chore(release): update versions to $GITHUB_REF_NAME [skip ci]" || echo "No changes to commit" git push origin HEAD:main env: diff --git a/website/sitemap.xml b/website/sitemap.xml index 57b493c..1ea6fde 100644 --- a/website/sitemap.xml +++ b/website/sitemap.xml @@ -3,31 +3,31 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"> https://sync.koalastuff.net/imprint - 2026-06-09 + 2026-06-16 monthly 0.3 https://sync.koalastuff.net/privacy - 2026-06-09 + 2026-06-16 monthly 0.3 https://sync.koalastuff.net/de/impressum - 2026-06-09 + 2026-06-16 monthly 0.3 https://sync.koalastuff.net/de/datenschutz - 2026-06-09 + 2026-06-16 monthly 0.3 https://sync.koalastuff.net/ - 2026-06-09 + 2026-06-16 weekly 1.0 @@ -47,7 +47,7 @@ https://sync.koalastuff.net/de/ - 2026-06-09 + 2026-06-16 weekly 0.8 @@ -67,7 +67,7 @@ https://sync.koalastuff.net/fr/ - 2026-06-09 + 2026-06-16 weekly 0.8 @@ -87,7 +87,7 @@ https://sync.koalastuff.net/es/ - 2026-06-09 + 2026-06-16 weekly 0.8 @@ -107,7 +107,7 @@ https://sync.koalastuff.net/pt-BR/ - 2026-06-09 + 2026-06-16 weekly 0.8 @@ -127,7 +127,7 @@ https://sync.koalastuff.net/ru/ - 2026-06-09 + 2026-06-16 weekly 0.8 @@ -147,7 +147,7 @@ https://sync.koalastuff.net/it/ - 2026-06-09 + 2026-06-16 weekly 0.8 @@ -167,7 +167,7 @@ https://sync.koalastuff.net/pl/ - 2026-06-09 + 2026-06-16 weekly 0.8 @@ -187,7 +187,7 @@ https://sync.koalastuff.net/tr/ - 2026-06-09 + 2026-06-16 weekly 0.8 @@ -207,7 +207,7 @@ https://sync.koalastuff.net/nl/ - 2026-06-09 + 2026-06-16 weekly 0.8 @@ -227,7 +227,7 @@ https://sync.koalastuff.net/ja/ - 2026-06-09 + 2026-06-16 weekly 0.8 @@ -247,7 +247,7 @@ https://sync.koalastuff.net/ko/ - 2026-06-09 + 2026-06-16 weekly 0.8 @@ -267,7 +267,7 @@ https://sync.koalastuff.net/pt/ - 2026-06-09 + 2026-06-16 weekly 0.8