Working around `No artifacts named "github-pages" were found for this workflow run.` in GitHub Actions 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. 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: via https://github.com/renovatebot/renovate/actions/runs/45665733508/job/139394524535 Found 19 artifact s Error: Fetching artifact metadata failed. Is githubstatus.com reporting issues with API requests, Pages, or Actions? Please re-run the deployment at a later time. Error: Error: No artifacts named "github-pages" were found for this workflow run. Ensure artifacts are uploaded with actions/upload-artifact@v4 or later. If 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. I 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: permissions: pages: write id-token: write steps: ... - name: Upload GitHub Pages artifact id: upload uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 v5.0.0 with: path: tools/mkdocs/site 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 - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 v5.0.1 continue-on-error: true - name: Wait before retrying deploy to GitHub Pages if: steps.deployment.outcome == 'failure' run: sleep 5 - name: Deploy to GitHub Pages retry 1 id: deployment retry 1 if: steps.deployment.outcome == 'failure' uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 v5.0.1 continue-on-error: true - name: Wait before retrying deploy to GitHub Pages if: steps.deployment retry 1.outcome == 'failure' run: sleep 20 - name: Deploy to GitHub Pages retry 2 id: deployment retry 2 if: steps.deployment retry 1.outcome == 'failure' uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 v5.0.1 continue-on-error: true - name: Wait before retrying deploy to GitHub Pages if: steps.deployment retry 2.outcome == 'failure' run: sleep 60 - name: Deploy to GitHub Pages retry 3 id: deployment retry 3 if: steps.deployment retry 2.outcome == 'failure' uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 v5.0.1 I'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. Instead, adding a bit of a wait between deploy attempts seems to work. I'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.