{"slug": "working-around-no-artifacts-named-github-pages-were-found-for-this-workflow-run", "title": "Working around `No artifacts named \"github-pages\" were found for this workflow run.` in GitHub Actions", "summary": "A GitHub Actions bug reported in actions/deploy-pages issue #451 causes deployments to GitHub Pages to fail with 'No artifacts named \"github-pages\" were found for this workflow run' even immediately after upload, accounting for 19 of 28 failed builds on Renovate's main branch over the past two weeks. Renovate maintainer Jamie Magee worked around the bug with Claude Sonnet 5.5 by retrying only the deploy step — using actions/deploy-pages v5.0.1 with continue-on-error and sleeps of 5, 20 and 60 seconds between attempts — after earlier loops checking the artifact_id or github-pages artifact name failed because deploy-pages looks up artifacts through different APIs than the REST API. A fix is pending in actions/deploy-pages pull request #455.", "body_md": "For over a month, there's been [a report of a bug in how GitHub Actions deploys to GitHub Pages](https://github.com/actions/deploy-pages/issues/451), where - even if you **literally just uploaded it**, GitHub Actions tells you:\n\n```\n# via https://github.com/renovatebot/renovate/actions/runs/45665733508/job/139394524535\nFound 19 artifact(s)\nError: Fetching artifact metadata failed. Is githubstatus.com reporting issues with API requests, Pages, or Actions? Please re-run the deployment at a later time.\nError: Error: No artifacts named \"github-pages\" were found for this workflow run. Ensure artifacts are uploaded with actions/upload-artifact@v4 or later.\n```\n\nIf you can't tell, this has been fairly frustrating to me this week. In the last two weeks, this has contributed 19/28 of our failed builds on [Renovate](https://docs.renovatebot.com/)'s `main` branch, and has been a noisy issue that's also led to our docs site being out-of-date for a number of hours at a time.\n\nI set Claude Sonnet 5.5 on it (because it's late and I'm grumpy) and after a few attempts, we've come to the following hacky solution:\n\n```\npermissions:\n pages: write\n id-token: write\n\nsteps:\n # ...\n\n - name: Upload GitHub Pages artifact\n id: upload\n uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0\n with:\n path: tools/mkdocs/site\n\n # Per https://github.com/actions/deploy-pages/issues/451, `deploy-pages` looks up the artifact once, and it may not be listed immediately after it is uploaded. Retry only the deploy, not the upload, as a second upload makes the lookup fail with multiple artifacts. Remove once https://github.com/actions/deploy-pages/pull/455 is released\n - name: Deploy to GitHub Pages\n id: deployment\n uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1\n continue-on-error: true\n\n - name: Wait before retrying deploy to GitHub Pages\n if: steps.deployment.outcome == 'failure'\n run: sleep 5\n\n - name: Deploy to GitHub Pages (retry 1)\n id: deployment_retry_1\n if: steps.deployment.outcome == 'failure'\n uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1\n continue-on-error: true\n\n - name: Wait before retrying deploy to GitHub Pages\n if: steps.deployment_retry_1.outcome == 'failure'\n run: sleep 20\n\n - name: Deploy to GitHub Pages (retry 2)\n id: deployment_retry_2\n if: steps.deployment_retry_1.outcome == 'failure'\n uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1\n continue-on-error: true\n\n - name: Wait before retrying deploy to GitHub Pages\n if: steps.deployment_retry_2.outcome == 'failure'\n run: sleep 60\n\n - name: Deploy to GitHub Pages (retry 3)\n id: deployment_retry_3\n if: steps.deployment_retry_2.outcome == 'failure'\n uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1\n```\n\nI'd originally started by adding a loop to see if the artifact existed [by the `artifact_id`](https://github.com/renovatebot/renovate/pull/48393) or [for the `github-pages` artifact name](https://github.com/renovatebot/renovate/pull/48395), but it looks like the way that `actions/deploy-pages` looks up the artifact is using different APIs than the REST API, so they're out-of-sync.\n\nInstead, adding a bit of a wait between deploy attempts seems to work.\n\nI'm hoping someone at GitHub picks up a fix for this soon - given the number of PRs you can see [in the activity feed on the issue](https://github.com/actions/deploy-pages/issues/451), it's causing quite a bit of impact across GitHub users right now.", "url": "https://wpnews.pro/news/working-around-no-artifacts-named-github-pages-were-found-for-this-workflow-run", "canonical_source": "https://www.jvt.me/posts/2026/11/25/github-pages-artifacts-bug/?utm_medium=rss&utm_source=rss", "published_at": "2026-11-25 20:49:01+00:00", "updated_at": "2026-11-25 21:13:11.110871+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["GitHub Actions", "GitHub Pages", "actions/deploy-pages", "actions/upload-pages-artifact", "Renovate", "Jamie Magee", "Claude Sonnet 5.5", "Anthropic"], "also_reported_by": [], "takeaway": "When actions/deploy-pages v5.0.1 reports the github-pages artifact missing right after upload, retry only the deploy step with 5-, 20- and 60-second waits rather than re-uploading, since a second upload makes the lookup fail with multiple artifacts.", "recommendation": {"advice": "Wrap the deploy-pages step in continue-on-error with retries after 5, 20 and 60 second sleeps, and never re-run the upload, which causes the artifact lookup to fail on duplicates.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/working-around-no-artifacts-named-github-pages-were-found-for-this-workflow-run", "markdown": "https://wpnews.pro/news/working-around-no-artifacts-named-github-pages-were-found-for-this-workflow-run.md", "text": "https://wpnews.pro/news/working-around-no-artifacts-named-github-pages-were-found-for-this-workflow-run.txt", "jsonld": "https://wpnews.pro/news/working-around-no-artifacts-named-github-pages-were-found-for-this-workflow-run.jsonld"}}