Prerequisites Link to heading

  • Flutter project
  • Github Account
  • Cloudflare account

Steps Link to heading

  • Create the GitHub Actions Workflow
  • Create a Cloudflare Pages project
    • e.g. npx wrangler pages project create your-pages-project-name –production-branch main
  • Add GitHub secrets
    • Go to Settings > Secrets and variables > Actions
    • CLOUDFLARE_API_TOKEN
      • Go to dash.cloudflare.com > Profile > API Tokens > Create Token
      • Edit Cloudflare Workers > Use Template
      • Permissions: Account > Cloudflare Pages > Edit
      • Account Resources: Select an account
      • Create & Copy
    • CLOUDFLARE_ACCOUNT_ID
  • Commit and Trigger the Workflow
  • Custom Domain (Optional)

Reference Link to heading