Skip to content

Harden GitHub Pages deploy job against transient deploy-pages failures#75

Merged
chefgs merged 8 commits into
mainfrom
copilot/fix-failing-github-actions-deploy
Jul 6, 2026
Merged

Harden GitHub Pages deploy job against transient deploy-pages failures#75
chefgs merged 8 commits into
mainfrom
copilot/fix-failing-github-actions-deploy

Conversation

Copilot AI commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

The deploy job in the Hugo docs workflow was failing intermittently on actions/deploy-pages@v4 with Deployment failed, try again later. This change adds a single conditional retry path so transient Pages backend errors do not fail the workflow on first attempt.

  • What changed

    • Updated .github/workflows/pages.yml in jobs.deploy.
    • Kept the existing primary deploy step.
    • Added continue-on-error: true to the primary deploy step so a retry can run.
    • Added a second deploy step that runs only when the first attempt outcome is failure.
  • Behavioral impact

    • First deploy attempt remains the default path.
    • Retry executes only on primary failure (not on success).
    • Permanent failures still surface if retry also fails.
deploy:
  steps:
    - name: Deploy to GitHub Pages
      id: deployment
      uses: actions/deploy-pages@v4
      continue-on-error: true

    - name: Retry GitHub Pages deploy (transient failure)
      id: deployment_retry
      if: steps.deployment.outcome == 'failure'
      uses: actions/deploy-pages@v4

Copilot AI changed the title [WIP] Fix failing GitHub Actions job deploy Harden GitHub Pages deploy job against transient deploy-pages failures Jul 6, 2026
Copilot finished work on behalf of chefgs July 6, 2026 15:18
Copilot AI requested a review from chefgs July 6, 2026 15:18
@chefgs chefgs marked this pull request as ready for review July 6, 2026 16:10
@chefgs chefgs merged commit 1f61fda into main Jul 6, 2026
8 checks passed
@chefgs chefgs deleted the copilot/fix-failing-github-actions-deploy branch July 6, 2026 16:11
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