How to Do Mannual Deployment on Vercel and add a CI/CD using Github Action + Vercel Deployment Hook


Only build production option and enter save
Now your vercel will not deploy any commit on prod , preview and PR deployment
vercel.json file in root of you project and add this code{
"git": {
"deploymentEnabled": false
}
}
Now for manual deployment to project dashboard/development

Choose Create Deployment and now here you have to paste the latest commit code (Or the point where you want to deploy the site ) and enter it in the input.


You Mannual Deployment is Done

But wait Doing Deployment like this sometime it only get staged not current so you have to permote it manually and again a deployment happens



Now you deployment is in production and you see a current badge in the deploment

Now as you have stoped the vercel’s Ci/Cd deployment and you want to create a custom CI/CD for you project which only run’s on your desired branch we have to create a vercel deployment hook

Enter the branch name carefully