deploymentvercelcicd

Vercel doesn't deploy any branch automatically (No Deployment)


I have a pro vercel subscription. I have my github connected, and I set up a hook so that I can manually push from main and that works.

I want:

  1. Automatic preview pushes and branches from all branches
  2. Automatic preview branches specifically configured

None of these work, and I haven't been able to debug this

Here is what I have for attempting to configure the "stage" branch:

enter image description here

Needless to say, I HAVE pushed a new commit to "stage", and also to "somebranch"

Nothing happens when I push to any branch (including main, stage and any other).

The only way for me to trigger a deploy is manually calling the hook I set on it, manually.


How to get vercel to do the most basic build-on-push?


Solution

  • The problem was the LOCAL git config name and email did not match the one connected to vercel via "connect git account".

    I had to change the LOCAL git config

    git config --global user.name "Your Name"
    git config --global user.email "your.email@example.com"
    

    to the one corresponding with the repo connected to vercel.


    This is what their support told me to do and it solved the problem.


    Is it dumb? -- Yes.

    It does not add security.
    It breaks encapsulation.
    It uses something that's meant to be purely visual for git commits.

    I wrote that to their support, and they didn't seem to even understand, so I left it. If it works it works.

    Very dumb design.