Skip to content

Harden GitHub Pages deploy job with explicit workflow and single retry - #1

Draft
sidianchen with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-deploy-job-failure
Draft

Harden GitHub Pages deploy job with explicit workflow and single retry#1
sidianchen with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-deploy-job-failure

Conversation

Copilot AI commented Jul 4, 2026

Copy link
Copy Markdown

The deploy job was failing after artifact creation with Deployment failed, try again later. in actions/deploy-pages@v5, indicating transient Pages deployment failures rather than a build issue.
This PR introduces a repository-owned Pages workflow that preserves current build behavior and adds retry logic only around deployment.

  • Workflow ownership and stability

    • Add .github/workflows/pages.yml to run Pages build/deploy from repository config (push to master + workflow_dispatch).
    • Keep standard Pages permissions and concurrency controls to avoid overlapping deployments.
  • Build path parity

    • Build via actions/jekyll-build-pages@v1 and upload via actions/upload-pages-artifact@v4, matching the existing Pages artifact flow.
  • Deploy resiliency

    • Run actions/deploy-pages@v5 with a single conditional retry when the first deployment attempt fails.
    • Mark the job failed only if both attempts fail.
    • Surface environment URL from whichever attempt succeeds.
- name: Deploy to GitHub Pages
  id: deploy_primary
  continue-on-error: true
  uses: actions/deploy-pages@v5

- name: Retry deployment once
  id: deploy_retry
  if: steps.deploy_primary.outcome == 'failure'
  uses: actions/deploy-pages@v5

Copilot AI changed the title [WIP] Fix failing GitHub Actions job deploy Harden GitHub Pages deploy job with explicit workflow and single retry Jul 4, 2026
Copilot AI requested a review from sidianchen July 4, 2026 18:27
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