Skip to content
Back

Can Sites deployments be limited to the main branch?

  • 0
  • Webhooks
  • Web
Booty
21 Feb, 2026, 15:57

Hey all! I’m using Appwrite Cloud Sites with GitHub connected. Right now, Appwrite seems to build for every push and PR, not just for my production branch (main). I’d like deploys to run only when changes land on main (e.g., after merging a PR from develop).

Questions:

  • Is there any way to filter by branch so builds run only for main?
  • Or can we configure GitHub so that Appwrite only receives webhook events for main pushes and not for other branches (e.g. develop)?

Context: I use a develop → main flow. Pushes to develop create builds we don’t need and add noise. I’d prefer no builds for non-production branches.

Thanks for any guidance.

TL;DR
Developers using Appwrite Cloud Sites with GitHub connected are wondering if they can limit site deployments to the main branch only. They are looking for a way to filter builds to run exclusively for the main branch, rather than triggering builds for every push and PR, including those in non-production branches like develop. This would help reduce unnecessary builds and potential noise.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more