From ad50aa5a99a75c6dde11af3ec530bf8b7738559d Mon Sep 17 00:00:00 2001 From: Joseph Mearman Date: Wed, 25 Nov 2026 10:00:07 +0000 Subject: [PATCH] fix(ci): retry the Pages deployment once when the artifact lookup lags the upload actions/deploy-pages reads the uploaded artifact through the Actions results service, which can lag the upload-pages-artifact finalisation, so the first lookup fails with "No artifacts named github-pages were found for this workflow run". The action's timeout, error_count and reporting_interval inputs only govern status polling after the deployment exists, so none of them covers that lookup. The first deploy-pages step now continues on error. On failure the job waits briefly and runs deploy-pages again against the artifact this run already uploaded. The cleanup step runs before the upload, so it does not remove that artifact. The page_url output and environment url come from whichever step succeeded. Refs: runs 45566697672 and 45568970524 --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e36df064..3fcada893 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1037,9 +1037,9 @@ jobs: actions: write environment: name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + url: ${{ steps.deployment.outputs.page_url || steps.deployment_retry.outputs.page_url }} outputs: - page_url: ${{ steps.deployment.outputs.page_url }} + page_url: ${{ steps.deployment.outputs.page_url || steps.deployment_retry.outputs.page_url }} steps: - uses: actions/checkout@v7 with: @@ -1067,8 +1067,17 @@ jobs: - uses: actions/upload-pages-artifact@v5 with: path: packages/web/dist + # Mitigation for a GitHub-side timing fault, removable once a deploy no longer needs it: deploy-pages reads the artifact through the Actions results service, which can lag the upload-pages-artifact finalisation by more than the action's first lookup ("No artifacts named github-pages were found for this workflow run", runs 45566697672 and 45568970524, and the run on dcd7f252b). The action's timeout, error_count and reporting_interval inputs only govern status polling after the deployment is created, so none of them covers this lookup. The retry below reuses the artifact this run already uploaded; the cleanup step above runs before the upload, so it never deletes the artifact the retry needs. - id: deployment uses: actions/deploy-pages@v5 + continue-on-error: true + - name: Wait for the artifact listing to propagate + if: steps.deployment.outcome == 'failure' + run: sleep 30 + - id: deployment_retry + name: Retry the Pages deployment + if: steps.deployment.outcome == 'failure' + uses: actions/deploy-pages@v5 verify-deployed-site: name: Verify the deployed site's own assets actually resolve