Skip to content

ci: fix deploy artifact and cache restore warnings - #5409

Merged
yanglbme merged 2 commits into
mainfrom
ci/fix-deploy-annotations
Sep 3, 2026
Merged

ci: fix deploy artifact and cache restore warnings#5409
yanglbme merged 2 commits into
mainfrom
ci/fix-deploy-annotations

Conversation

@yanglbme

@yanglbme yanglbme commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Bump actions/upload-artifact to v7 and actions/download-artifact to v8 so they run on Node.js 24 instead of the deprecated Node 20 runtime.
  • Upload .git-committers-cache.json with include-hidden-files: true. The file is written by the committer hook, but upload-artifact skips dotfiles by default, so the cache never reached the package job.
  • Drop the unused mkdocs-material .cache restore. This site does not generate that directory, so restore hit a stale prefix key, warned Failed to restore:, and then skipped save.

Test plan

  • After merge, the next deploy.yml run should have no Node 20, hidden-file, or cache-restore annotations
  • committer-cache-zh / committer-cache-en artifacts should be present
  • Package job should merge and push the committer cache when it changed

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI lite review requested due to automatic review settings September 3, 2026 07:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The workflow can fail on runs where .git-committers-cache.json is missing because the committer-cache artifact upload now errors instead of gracefully handling absence.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the GitHub Pages deploy workflow to eliminate deprecation/warning noise and ensure the committer-cache artifact is actually transferred between jobs.

Changes:

  • Remove the unused mkdocs-material .cache restore steps that were producing restore warnings.
  • Bump artifact upload/download actions to newer major versions.
  • Ensure .git-committers-cache.json is uploaded as an artifact (including hidden files) so the package job can consume it.
File summaries
File Description
.github/workflows/deploy.yml Removes unused mkdocs cache restore and updates artifact upload/download configuration for deploy packaging.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/deploy.yml
Co-authored-by: Cursor <cursoragent@cursor.com>
@yanglbme
yanglbme merged commit 8dcbcfb into main Sep 3, 2026
2 checks passed
@yanglbme
yanglbme deleted the ci/fix-deploy-annotations branch September 3, 2026 08:05
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