{"repo":"andykenward/github-actions-cloudflare-pages","free":true,"listed":false,"github":"https://github.com/andykenward/github-actions-cloudflare-pages","clone":"git clone https://github.com/andykenward/github-actions-cloudflare-pages.git","description":"GitHub Action to deploy to Cloudflare Pages","language":"TypeScript","stars":34,"topics":["ci","cloudflare-pages","github-actions","typescript"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"GitHub Action — Cloudflare Pages Deploy your build output to [Cloudflare Pages] with [Wrangler], while tracking every release through [GitHub Environments] and [GitHub Deployment]. On a [pull request], it creates a preview deployment and comments the URL on the PR. Features - Deploy to [Cloudflare Pages]. - Track releases with [GitHub Environments] & [GitHub Deployment]. - Comment the deployment URL on pull requests. - Delete old deployments with the companion /delete action. - Run Wrangler from a subfolder via the working-directory input — handy for monorepos where functions isn't in the repo root. Quick start 1. Create a [Cloudflare Pages] project and an API token that can edit it. 2. Manually create your [GitHub Environments] (for example production and preview ) — the action can't create them for you. See Setup. 3. Add the Cloudflare values as repository secrets/variables, then add a workflow like the one below (this mirrors the official template in .github/workflow-templates/deploy.yml): The github-environment expression deploys the main branch to production and every other branch to preview . For a line-by-line breakdown of this expression — and how it relates to the Cloudflare branch input — see GitHub Environments. Setup 1. Cloudflare Create a [Cloudflare Pages] project, then give the action three values (store the token as a repository secret and the rest as variables or secrets): - cloudflare-api-token — an API token with permission to edit Cloudflare Pages. - cloud","default_branch":null,"files":null,"tree":[],"storefront":"/r/andykenward","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/andykenward/github-actions-cloudflare-pages/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}