fix: derive sitemap lastmod from git history instead of build date

Every sitemap URL got the build date as lastmod, so all pages claimed a change on each daily deploy, and the sponsorship page used file mtime, which on CI's fresh checkout is also build time.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen 2026-10-02 19:48:50 +08:00
parent 81781cf1f5
commit 3643d6d657
No known key found for this signature in database
GPG key ID: B93DE4F003C33630
3 changed files with 91 additions and 15 deletions

View file

@ -24,6 +24,9 @@ jobs:
url: https://awesome-python.com/
steps:
- uses: actions/checkout@v7
with:
# build.py reads each page's last change from git history for the sitemap's lastmod
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0