Skip to content

fix(ci): create the Cloudflare Pages project on the first deploy - #15

Merged
Bugs5382 merged 1 commit into
mainfrom
fix/14-create-pages-project
Oct 16, 2026
Merged

Bugs5382 merged 1 commit into
mainfrom
fix/14-create-pages-project

Conversation

@Bugs5382

Copy link
Copy Markdown
Contributor

What and why

Closes #14

The first website deploy failed because the Cloudflare Pages project cryptos-pki-www didn't exist. Before the deploy, the Deploy workflow now lists the account's Pages projects (pages project list --json) using the same pinned cloudflare/wrangler-action. It runs pages project create cryptos-pki-www --production-branch=main only when the project is missing, so every later release skips that step. The secrets are unchanged and nothing new is printed. The README deploy section and docs/deploy.md now say the workflow creates the project, and that the custom domains are still attached once by hand in Cloudflare.

Verification

  • actionlint passes.
  • The project check was run locally against three sample outputs: an empty list (missing), a list with wrangler's banner ahead of the JSON array (found), and a list with another project only (missing).
  • The Project Name key matches wrangler 4's pages project list --json output.

How this was verified

Locally with actionlint and the sample outputs above. The real path runs the next time a website release is published.

@Bugs5382 Bugs5382 added this to the v0.1.0 milestone Oct 16, 2026
@Bugs5382 Bugs5382 added the bug Something isn't working. label Oct 16, 2026
@Bugs5382 Bugs5382 self-assigned this Oct 16, 2026
Refs #14

Signed-off-by: Bugs5382 <12115015+Bugs5382@users.noreply.github.com>
@github-actions github-actions Bot added the fix Bug fix (fix). Patch. label Oct 16, 2026
@Bugs5382
Bugs5382 merged commit c448687 into main Oct 16, 2026
8 checks passed
@Bugs5382
Bugs5382 deleted the fix/14-create-pages-project branch October 16, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working. fix Bug fix (fix). Patch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): deploy fails when the Cloudflare Pages project does not exist yet

1 participant