GitHub Actions actions/configure-pages "Pages not enabled"
actions/configure-pages queries the repository Pages configuration. If Pages is disabled, or its build source is not set to GitHub Actions, the lookup fails before deploy.
What this error means
A configure-pages step fails getting the Pages site, suggesting Pages is not enabled or the source is wrong.
github-actions
Error: Get Pages site failed. Please verify that the repository has Pages enabled and configured to build using GitHub Actions, rather than from a branch.
Error: HttpError: Not FoundCommon causes
Pages disabled for the repo
configure-pages needs Pages turned on in repository settings.
Source set to a branch, not Actions
When the Pages build source is a branch, the Actions deploy flow cannot configure it.
How to fix it
Enable Pages with the Actions source
- In Settings > Pages, set Source to GitHub Actions.
- Add pages: write and id-token: write permissions to the deploy job.
- Use enablement: true on configure-pages to auto-enable where supported.
.github/workflows/pages.yml
permissions:
pages: write
id-token: write
steps:
- uses: actions/configure-pages@v5
with:
enablement: trueHow to prevent it
- Set the Pages source to GitHub Actions before running the deploy workflow.
- Keep pages: write and id-token: write on the deploy job.
Related guides
GitHub Actions actions/deploy-pages "deployment failed" (environment)Fix actions/deploy-pages deployment failures - a missing github-pages environment, branch protection rules, o…
GitHub Actions actions/upload-pages-artifact "missing artifact"Fix deploy-pages "No artifact named github-pages-artifact found" - upload-pages-artifact did not run or point…
GitHub Actions JamesIves/github-pages-deploy-action "permission denied"Fix JamesIves/github-pages-deploy-action permission-denied push errors - the token cannot push to the deploy…