A step-by-step tutorial on deploying a website version based on the GitHub Pull Request on Netlify
I was starting a course at the time and I needed to complete the landing page that I would arrive on the "release day" without having to change the current version of the website I was going to use publicly.
I am usingNetlifyThis makes it easy to automatically deploy a website from a Git branch. In my case, the website was hosted onGitHub. I will document this process. Other CI/CD-based hosting service providersGitThere may be similar tools in the repository.
Netlify automatically builds deployment previews for the following projectsPull request.
So what I have to do is create a new branch, which I call
launch, And started processing by adding some commits, then I created a Pull Request, which made GitHub Desktop very easy:
After I sent the PR, Netlify immediately started its continuous integration/continuous delivery pipeline:
Switching to the Netlify website, I can see that it automatically extracted the Pull Request branch and started the deployment preview:
After a few minutes, I obtained the new URL of the website, and then used it to continue preparing for the course start, while the main domain name still pointed to