Skip to content

Harden Website Deploy workflow against transient GitHub Pages failures - #12110

Draft
tsteenbe with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-website-deploy-failure
Draft

tsteenbe with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-website-deploy-failure

Conversation

Copilot AI commented Jul 6, 2026 •

Copy link
Copy Markdown

The Website Deploy job was failing intermittently in actions/deploy-pages with Deployment failed, try again later, despite a successful website build and uploaded Pages artifact. This change makes deployment resilient to transient Pages API failures without masking persistent failures.

  • Deploy retry behavior

    • Keep the first actions/deploy-pages attempt as primary.
    • Add a second deploy attempt only when the first attempt fails.
  • Failure semantics

    • If both attempts fail, fail the job explicitly with a clear error message.
    • This preserves signal for real deployment outages while reducing one-off flakes.
  • Environment URL output handling

    • Resolve environment.url from whichever deploy attempt succeeds.
environment:
  name: github-pages
  url: ${{ steps.deployment.outputs.page_url || steps.deployment-retry.outputs.page_url }}

steps:
  - id: deployment
    continue-on-error: true
    uses: actions/deploy-pages@v5

  - if: steps.deployment.outcome == 'failure'
    id: deployment-retry
    continue-on-error: true
    uses: actions/deploy-pages@v5

  - if: steps.deployment.outcome == 'failure' && steps.deployment-retry.outcome == 'failure'
    run: |
      echo "Both website deployment attempts failed."
      exit 1
Copilot AI changed the title [WIP] Fix failing GitHub Actions job Website Deploy Jul 6, 2026
Copilot AI requested a review from tsteenbe July 6, 2026 06:56
@mnonnenmacher

Copy link
Copy Markdown
Member

@tsteenbe Can we close this? I saw only one failed deployment in the recent weeks due to a GitHub timeout and in this case it's unclear if a retry would even help.

@sschuberth

Copy link
Copy Markdown
Member

@tsteenbe Can we close this? I saw only one failed deployment in the recent weeks due to a GitHub timeout and in this case it's unclear if a retry would even help.

Ping again @tsteenbe...

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants