Skip to content

fix(docs): deploy GitHub Pages via the Actions source#13

Merged
OsherElhadad merged 2 commits into
mainfrom
fix/pages-actions-deploy
Jul 21, 2026
Merged

fix(docs): deploy GitHub Pages via the Actions source#13
OsherElhadad merged 2 commits into
mainfrom
fix/pages-actions-deploy

Conversation

@OsherElhadad

Copy link
Copy Markdown
Collaborator

Problem

https://rossoctl.github.io/context-guru/ shows a single page with no menu — it's serving the raw repo README.md because Pages is set to legacy Deploy from a branch (main, /root), not the built MkDocs site.

The Docs workflow already builds the site correctly, but its deploy job failed on both merges to main with:

##[error]Creating Pages deployment failed
##[error]HttpError: Not Found

That error is what actions/deploy-pages returns when the repo's Pages build_type is legacy rather than workflow.

Fix

Add actions/configure-pages@v5 with enablement: true before deploy-pages. On the next run it switches the Pages source to GitHub Actions (build_type: workflow) and then publishes the built site — homepage, nav, and all.

After merging

Merging this to main triggers the Docs workflow (it touches the workflow file), which will flip the source and deploy the real site. If auto-enablement is blocked by org policy, the one-click equivalent is Settings → Pages → Source → "GitHub Actions", then re-run the workflow.

Osher-Elhadad added 2 commits July 21, 2026 15:21
The Docs workflow built and uploaded the site fine, but deploy-pages failed with
"HttpError: Not Found" because the repo's Pages was in legacy "Deploy from a
branch" mode (main /root) — which just serves the raw README, so the site showed
a single page with no navigation.

Add actions/configure-pages@v5 with enablement:true before deploy-pages so the
workflow switches the Pages source to "GitHub Actions" (build_type=workflow) and
publishes the built MkDocs site.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Osher-Elhadad <Osher.Elhadad@ibm.com>
integrations.md lives at docs/ root, so the link to the how-to guide must be
how-to/choose-a-preset.md, not ../how-to/... . The ../ form pointed outside the
docs tree and failed `mkdocs build --strict`.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Osher-Elhadad <Osher.Elhadad@ibm.com>
@OsherElhadad
OsherElhadad merged commit 523c18e into main Jul 21, 2026
5 checks passed
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.

1 participant