Skip to content

mcpx docs workflow: Deploy to GitHub Pages fails - artifact not found #10956

Closed

Description

@dezren39

Failure Details

Run: https://github.com/developing-today/code/actions/runs/44014450921
Workflow: mcpx docs
Job: deploy: GitHub Pages
Failed Step: Deploy to GitHub Pages (step 9)
Head SHA: c770846
Run Time: 2026-11-17T04:04:07Z - 2026-11-17T04:05:02Z

Error

The step fails with:

Fetching artifact metadata for "github-pages" in this workflow run
Found 0 artifact(s)
Error: No artifacts named "github-pages" were found for this workflow run. Ensure artifacts are uploaded with actions/upload-artifact@v4 or later.

However, the step (step 8) successfully uploads the artifact:

Artifact github-pages successfully finalized. Artifact ID 14297553256
Artifact github-pages has been successfully uploaded! Final size is 4980868 bytes.
Artifact download URL: https://github.com/developing-today/code/actions/runs/44014450921/artifacts/14297553256

Root Cause Hypothesis

This appears to be a race condition in GitHub Actions where the action cannot immediately find the artifact that was just uploaded by . The artifact upload completes successfully (as evidenced by the artifact ID and download URL), but the subsequent deploy step reports "Found 0 artifact(s)".

This is a known intermittent issue with GitHub Pages deployments where there's a propagation delay between artifact upload completion and artifact availability for the deploy action.

Suggested Fix

Add a retry/wait mechanism before the deploy step, or use the action's built-in retry configuration. The workflow already has and configured, but the error suggests the artifact metadata fetch itself is failing rather than a deployment retry.

Possible solutions:

  1. Add a step or explicit sleep before deploy-pages
  2. Use a newer version of deploy-pages with better artifact handling
  3. Check if the artifact name mismatch (upload uses "github-pages", deploy looks for "github-pages") - they match, so this isn't the issue
  4. The issue may be that creates a different artifact type than what expects

Workflow File

The workflow is likely at or similar.

Activity

  1. developing-today commented on Nov 17, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Recurrence on main: run https://github.com/developing-today/code/actions/runs/44066621783 (2026-11-17T10:37:58Z, push to main) failed in job deploy: GitHub Pages. Same workflow and job as this issue; not filing a new fix (dedupe to the live tracker). Earlier main run 44059297361 completed successfully.

  3. added a commit that references this issue on Nov 17, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — done (fixed_merged), task 20166, lane code-e

    • Root cause (reproduced): actions/deploy-pages@v5 fetches the github-pages artifact metadata as its first act; running ~1s after upload-pages-artifact@v5 finalized in the same job, the metadata had not always propagated. Identical failures in runs 44014450921 (04:04Z, the run this issue was filed from) and 44066621783 (10:40Z today, re-verified this shift), with successful runs interleaved.
    • Fix: PR fix(ci): split mcpx-docs Pages publish into its own job (#10956) #11239 (merged 2026-11-17T10:56:26Z, merge commit 99a6753584b6050d450c38d5f9b6593f58152f0e) splits the publish step into its own publish job behind the stage/upload job, and adds a conditional 60s wait + one retry if the first deploy attempt still fails.
    • Acceptance verified live: the merge's own push run 44069429054 on SHA 99a6753584 completed success — build, stage (build + upload Pages artifact), and publish: GitHub Pages all green, no artifact-not-found error.
    • Reviews: Codex's review could not run (Codex usage limits) and produced no findings; CodeRabbit posted no actionable comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions