Skip to content

Enable GitHub Pages during docs deployment workflow - #2

Merged
ashishsinghbora merged 2 commits into
mainfrom
copilot/fix-failing-github-actions-job
Aug 25, 2026
Merged

ashishsinghbora merged 2 commits into
mainfrom
copilot/fix-failing-github-actions-job

Conversation

Copilot AI commented Aug 25, 2026 •

Copy link
Copy Markdown

The build-and-deploy Actions job failed in the Pages setup phase (actions/configure-pages@v4) with Get Pages site failed / HttpError: Not Found, blocking documentation deployment. This change updates the workflow to explicitly enable Pages at runtime before artifact upload/deploy.

  • Root-cause correction (workflow behavior)

    • Updated .github/workflows/deploy-pages.yml to pass enablement: true to actions/configure-pages@v4, ensuring the repository Pages site is created/configured when missing.
  • Deployment flow impact

    • Keeps existing build/upload/deploy sequence intact.
    • Changes only the Pages configuration step so downstream upload-pages-artifact and deploy-pages run against an initialized Pages site.
- name: Setup Pages
  uses: actions/configure-pages@v4
  with:
    enablement: true

Co-authored-by: ashishsinghbora <135435891+ashishsinghbora@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix the failing GitHub Actions job build-and-deploy Enable GitHub Pages during docs deployment workflow Aug 25, 2026
Copilot AI requested a review from ashishsinghbora August 25, 2026 15:30
@ashishsinghbora
ashishsinghbora marked this pull request as ready for review August 25, 2026 15:30
Copilot AI lite review requested due to automatic review settings August 25, 2026 15:30
@ashishsinghbora
ashishsinghbora merged commit 16dbbf2 into main Aug 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new enablement: true setting likely won’t work without providing a non-GITHUB_TOKEN token to configure-pages, so the workflow may still fail in practice.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the GitHub Pages docs deployment workflow to try to automatically enable/configure GitHub Pages at runtime (to avoid failures when the Pages site is not yet initialized).

Changes:

  • Adds with: enablement: true to the actions/configure-pages@v4 step in the docs deployment workflow.
File summaries
File Description
.github/workflows/deploy-pages.yml Attempts to auto-enable Pages during the workflow via configure-pages enablement input.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/deploy-pages.yml

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

Good

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.

3 participants