Fix failing Pages deploy by replacing auto-generated workflow with explicit one#6
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
pages-build-deploymentdynamic workflow's deploy job fails withDeployment 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 whenactions/deploy-pagespolls deployment status and GitHub Pages returnsfailedwithin ~5 seconds.Changes
.github/workflows/pages.yml— explicit Jekyll + Pages workflow that supersedes the opaque auto-generated oneKey differences from the dynamic workflow:
actions/configure-pages@v5step — initialises the Pages environment and correctly readsCNAMEfor custom-domain handlingworkflow_dispatchtrigger — allows manual re-deployment without a code push