diff --git a/.github/workflows/build_and_check.yml b/.github/workflows/build_and_check.yml index d9d2c83fe..3e74c3f2e 100644 --- a/.github/workflows/build_and_check.yml +++ b/.github/workflows/build_and_check.yml @@ -21,6 +21,10 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + # Full history, so the preview's last-update dates and sitemap + # match what production will ship. + fetch-depth: 0 - name: Set up Node.js uses: actions/setup-node@v5 @@ -39,6 +43,9 @@ jobs: - name: Verify structured-data graph run: npm run verify-schema + - name: Verify sitemap lastmod dates + run: npm run verify-lastmod + # Deploys this PR's build with main.yml's deploy script into a local S3, # then replays the weeks after it: no asset a live or open page still # loads is deleted, every unused one eventually is, and every file gets diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a6b13c19f..3cf12a332 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,6 +47,9 @@ jobs: with: # main as it is now, not github.sha — see the concurrency comment. ref: main + # Full history: doc last-update dates and sitemap come + # from each file's git log (src/lastUpdate/contentLastUpdate.js). + fetch-depth: 0 - name: Set Node.js 22.x uses: actions/setup-node@v3 diff --git a/.lastmod-ignore-revs b/.lastmod-ignore-revs new file mode 100644 index 000000000..b4c6ebcbe --- /dev/null +++ b/.lastmod-ignore-revs @@ -0,0 +1,11 @@ +# Commits that change doc bodies without changing what they say (a mass +# find-and-replace, a link or formatting rewrite). Doc last-update dates and +# the sitemap skip them. Front-matter-only and whitespace-only +# changes are already skipped automatically, so they do not need listing. +# One full commit hash per line; see src/lastUpdate/contentLastUpdate.js. + +# #896: swapped for webp and gifs for