Skip to content

Fix Pages deploy workflow branch-policy failure by configuring Actions-based Pages deployment#1

Draft
OneOneFour with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-deploy-job
Draft

Fix Pages deploy workflow branch-policy failure by configuring Actions-based Pages deployment#1
OneOneFour with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-deploy-job

Conversation

Copilot AI commented Jul 12, 2026

Copy link
Copy Markdown

The deploy GitHub Actions job failed when creating a Pages deployment due to branch-based Pages policy (master) being enforced instead of Actions-based deployment. This PR updates the workflow to explicitly configure Pages before deployment.

  • Root cause

    • actions/deploy-pages@v5 was invoked without an explicit Pages configuration step, so the repository remained under branch-policy constraints.
  • Workflow change

    • Added actions/configure-pages@v5 in the build job before the Astro build/upload step.
    • This aligns the workflow with GitHub Pages Actions deployment expectations and removes the branch restriction mismatch.
  • Scope control

    • Restored accidental package-lock.json drift introduced during local dependency setup to keep the change focused on deploy behavior.
- name: Configure Pages
  uses: actions/configure-pages@v5

Copilot AI changed the title [WIP] Fix failing GitHub Actions job deploy Fix Pages deploy workflow branch-policy failure by configuring Actions-based Pages deployment Jul 12, 2026
Copilot AI requested a review from OneOneFour July 12, 2026 17:18

@OneOneFour OneOneFour 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.

Are any repository wide actions required to be taken before approval?

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