Skip to content

chore(ci): upgrade Hugo to 0.171.0 and update layout overrides - #68

Merged
DerekRoberts merged 2 commits into
mainfrom
chore/upgrade-hugo
Dec 2, 2026
Merged

DerekRoberts merged 2 commits into
mainfrom
chore/upgrade-hugo

Conversation

@DerekRoberts

Copy link
Copy Markdown
Member
  • What changes: Fixes CI failures on PaperMod updates (including chore(deps): bump themes/PaperMod from d376885 to 1181196 #67) by upgrading HUGO_VERSION from 0.146.0 to 0.171.0 in .github/workflows/pr-deploy.yml and .github/workflows/prod-deploy.yml, pinning runner/action versions (ubuntu-24.04, SHA-pinned actions, permissions: {}), updating deprecated Hugo 0.158.0+ config/template fields in hugo.toml, layouts/_default/baseof.html, and layouts/partials/header.html, and adding a PR dry-run trigger on .github/workflows/prod-deploy.yml.
  • What could go wrong: Touches PROD deployment workflow (.github/workflows/prod-deploy.yml), though Deploy to gh-pages is gated on github.event_name != 'pull_request' so PR runs cannot publish to gh-pages; hugo.toml uses locale = 'en-us' instead of languageCode, which works with both current PaperMod d376885 and chore(deps): bump themes/PaperMod from d376885 to 1181196 #67's 1181196.
  • How it was verified: Ran docker.io/rhysd/actionlint:1.7.12 in Podman (0 errors/warnings); built the site in docker.io/library/ubuntu:26.04 with Hugo 0.171.0 against both d376885 (12 pages, 0 errors, en-us verified in public/index.xml) and chore(deps): bump themes/PaperMod from d376885 to 1181196 #67's 1181196 (12 pages, 0 warnings, 0 errors, en-us verified in public/index.xml); plus PR CI runs for both workflows.

Refs #67

Copilot AI balanced review requested due to automatic review settings December 2, 2026 01:44
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

🚀 Preview deployment ready!

✨ Preview URL: https://Equitizers.github.io/MetaCurious/pr-68/

The preview will be automatically updated with each commit and cleaned up when the PR is closed or merged.

Note: It may take a few minutes for GitHub Pages to update with your changes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Per-ref concurrency allows publishing runs to race on the shared gh-pages branch, risking stale content overwriting a newer production deployment.

1 open issue
What changed in this PR

Updates the site's Hugo setup for newer PaperMod releases, including #67, and modernizes deployment workflows.

Changes:

  • Upgrades CI to Hugo 0.171.0 and replaces deprecated template/configuration fields.
  • Pins runners and actions, scopes permissions, and adds a production-workflow PR dry run.
  • Updates local-development and workflow documentation.
File Description
README.md Raises the documented minimum Hugo version.
layouts/​partials/​header.html Uses the updated language label field.
layouts/​_default/​baseof.html Updates the version guard and language direction field.
hugo.toml Replaces languageCode with locale.
.github/​workflows/​README.md Documents the upgraded CI Hugo version.
.github/​workflows/​prod-deploy.yml Upgrades tooling and adds guarded PR dry runs.
.github/​workflows/​pr-deploy.yml Upgrades tooling and scopes deployment permissions.

Review effort: Balanced

Comment thread .github/workflows/prod-deploy.yml Resolved
@DerekRoberts
DerekRoberts merged commit fdcb4d0 into main Dec 2, 2026
2 checks passed
@DerekRoberts
DerekRoberts deleted the chore/upgrade-hugo branch December 2, 2026 02:35
github-actions Bot added a commit that referenced this pull request Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants