Skip to content

Conversation

@eliot-akira
Copy link
Contributor

@eliot-akira eliot-akira commented Nov 10, 2025

Edit: Below information added as a guide in the documentation.


Resolves #12. Merge when the env variables are prepared in the repository settings.

For reference, see Cloudflare Pages GitHub Action.

From GitHub repo's Settings -> Secrets -> Actions, add new "repository secrets".

  • CLOUDFLARE_ACCOUNT_ID
    • From dash.cloudflare.com, select the domain. In the Overview's right sidebar, scroll down to find Account ID.
  • CLOUDFLARE_API_TOKEN
    • From dashboard, select your user's avatar (top right) and go to Profile -> API Tokens -> Create Token. Then to Custom Token -> Get Started.
    • Name: tangible-cloudflare-pages-deploy
    • Under Permissions, select Account, Cloudflare Pages, and Edit.
    • Click Continue to Summary, and Create Token.

From Cloudflare dashboard, create a Pages project.

  • Go to Workers & Pages, click Create Application. Then Pages -> Drag and drop your files.
  • Name: storybook-fields. Then Created Project - no need to Deploy Site, it will be done in the next step.

Prepare GitHub Actions workflow script.

  • Create .github/workflows/deploy-cloudflare-pages.yml
  • Copy from tangible-ui or pipeline, and replace project-specific values:
    • projectName: storybook-fields - Same as Cloudflare Pages project created above

@eliot-akira eliot-akira changed the title Deploy to CloudFlare Pages Deploy to Cloudflare Pages Nov 10, 2025
@eliot-akira eliot-akira merged commit 04e3700 into main Nov 10, 2025
2 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.

Storybook: Publish to GitHub Pages or Cloudflare Pages

2 participants