Skip to content

Fix failing Pages deploy by replacing auto-generated workflow with explicit one#6

Merged
hsanchez merged 2 commits into
masterfrom
copilot/fix-failing-github-actions-job
Jul 5, 2026
Merged

Fix failing Pages deploy by replacing auto-generated workflow with explicit one#6
hsanchez merged 2 commits into
masterfrom
copilot/fix-failing-github-actions-job

Conversation

Copilot AI commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

The pages-build-deployment dynamic workflow's deploy job fails with Deployment failed, try again later. — a GitHub Pages backend rejection unrelated to the committed content. The build succeeds and uploads a valid artifact; the failure occurs when actions/deploy-pages polls deployment status and GitHub Pages returns failed within ~5 seconds.

Changes

  • Add .github/workflows/pages.yml — explicit Jekyll + Pages workflow that supersedes the opaque auto-generated one

Key differences from the dynamic workflow:

permissions:
  contents: read
  pages: write
  id-token: write   # required for deploy-pages OIDC; absent from dynamic workflow
  • Adds actions/configure-pages@v5 step — initialises the Pages environment and correctly reads CNAME for custom-domain handling
  • Adds workflow_dispatch trigger — allows manual re-deployment without a code push
  • Pins all action versions explicitly

The dynamic `pages-build-deployment` workflow's deploy job was failing
with "Deployment failed, try again later." — a GitHub Pages backend
rejection unrelated to the pushed content (plain markdown text).

Replace the opaque auto-generated workflow with an explicit custom one
that:
- Declares `id-token: write` at the workflow level (required by
  actions/deploy-pages for OIDC authentication)
- Uses `actions/configure-pages` to properly set up the Pages
  environment, including custom-domain handling
- Pins all action versions explicitly for reproducibility
- Adds `workflow_dispatch` so the deployment can be re-triggered
  manually without a code push
Copilot AI changed the title [WIP] Fix failing GitHub Actions job deploy Fix failing Pages deploy by replacing auto-generated workflow with explicit one Jul 5, 2026
Copilot AI requested a review from hsanchez July 5, 2026 01:23
@hsanchez hsanchez marked this pull request as ready for review July 5, 2026 01:26

@hsanchez hsanchez left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hsanchez hsanchez merged commit 609051e into master Jul 5, 2026
1 check passed
@hsanchez hsanchez deleted the copilot/fix-failing-github-actions-job branch July 5, 2026 01: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