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

Harden Website Deploy workflow against transient GitHub Pages failures#12110
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 Harden Website Deploy workflow against transient GitHub Pages failures Jul 6, 2026
Copilot AI requested a review from tsteenbe July 6, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants