Configuring the pipeline for deploying to Vercel
When our testing jobs finish, we want to deploy the application to Vercel. To start deploying to Vercel from GitHub Actions, we need to do a couple of things:
- Have a Vercel account
- Disable GitHub integration for Vercel
- Link the project to Vercel
- Provide environment variables to GitHub Actions
- Create the job that will deploy the application
Having a Vercel account
Vercel is straightforward to get started with. Visit https://vercel.com/signup and create an account if you don’t have one.
Disabling GitHub integration for Vercel
Vercel is a platform that has excellent integration with GitHub out of the box. This means that whenever we push changes to the repository, a new version of the application will be deployed to Vercel automatically. However, in our case, we want to verify that our application works as expected before the deployment step so that we can perform this task from the CI/CD pipeline...