Build & Deploy via webhook only

I think this related to this question: Triggering publish with a webhook
and this post: [Support Guide] How can I disable automatic git deploys?.

I was trying to only build/deploy by adding the build hook to my pipeline. Adding it to the pipeline as is resulted in double builds (triggered by push AND pipeline). Renaming the production branch with a bogus name didn’t work for me because I wanted it to automatically publish on my actual main branch. I ended up…

  1. Creating a build hook and leaving my production branch name the same
  2. Disabling the webhook in my repo (automatically added by Netlify)
  3. Adding the build hook to my pipeline

Hope this helps someone!