Skip to content

Let the Pages deployment create the site it publishes to - #4

Merged
aziz0220 merged 1 commit into
mainfrom
pages-enablement
Aug 30, 2026
Merged

Let the Pages deployment create the site it publishes to#4
aziz0220 merged 1 commit into
mainfrom
pages-enablement

Conversation

@aziz0220

Copy link
Copy Markdown
Collaborator

The first deploy after merging #2 failed in actions/configure-pages:

Get Pages site failed. Please verify that the repository has Pages enabled
and configured to build using GitHub Actions
Error: Not Found

The repository has no Pages site yet, and the step looks for one rather than
creating it. The landing page itself is fine.

This sets enablement: true so the workflow creates the site on its first run
and is a no-op afterwards.

This may not be sufficient on its own. Creating a Pages site needs the
workflow token to be permitted to do it. If the re-run fails the same way, an
administrator has to flip the setting once instead: Settings → Pages → Build and
deployment → Source: GitHub Actions
, then re-run the workflow. I don't have
admin on this repository, so I can't do that or test it from here.

The first run after merging failed in configure-pages: the repository has no
Pages site, and the step looks for one rather than creating it. Nothing about the
page itself was wrong.

Asking the step to create the site keeps the workflow self-contained instead of
depending on a setting someone has to remember to flip, and it does nothing once
the site exists. It still needs the workflow token to be allowed to create one, so
if this run fails the same way, the setting is the only route: Settings, Pages,
source GitHub Actions.
Copilot AI lite review requested due to automatic review settings August 30, 2026 14:50

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@aziz0220
aziz0220 merged commit 4675c18 into main Aug 30, 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.

2 participants