Published on

Auto update Vercel after github pushing

Authors

When updating a new post, we need Vercel to auto deploy the new commit from github.

Create a Vercel deploy hook

  1. make sure the project is connected to github repo.
  2. Once the project is live, go to the Settings page > GIt menu.
  3. In the Deploy Hooks section, give a hook name and select the branch.
image

After submitting the form, you will see a URL that you can copy and use.

image
  1. Go to you Github project, navigate to Settings tab > webhooks menu. Paste the URL in step 3 to the Payload Url, and activate the webook.
image
  1. test

Make new committment.

git push origin master

Go to Vercel Deployments tab, we can see the deployment status and logs.

image