Continuous deployment
Closed this issue · 1 comments
Our workflow is looking pretty good! We have now set up some automated tests for any new changes. We can go one step further and add continuous deployment to our workflow.
What is Continuous Deployment?
Continuous Deployment, or CD, is an extended step that builds from the automation in CI. CD is automation at various stages, deploying new changes to the different environment.
The goal of CD is to reduce the time it takes to finish a project. Automation provides shorter feedback loops. This could look like faster testing cycles, or faster deployment and user feedback.
There are several ways to deploy your code changes. For this repository, we'll deploy with GitHub Pages. If you'd like to learn more about GitHub Pages, there are a few learning lab courses you might be interested in.
When deploying with GitHub Pages, you can choose to deploy from several locations. We're going to deploy from the /docs
directory of this repository. This will deploy only the contents of the /docs
directory.
Step 12: Deploy
Whenever there is a new commit on master
, GitHub pages will deploy.
⌨️ Activity: Enable GitHub pages to deploy
- Navigate to the Settings tab.
- Under GitHub pages, set the source to
master branch
and click Save.
I'll respond below for your next steps.
Nice job enabling GitHub pages and setting up your continuous deployment.
You can see your deployment published here: https://oLeVanNinh.github.io/continuous-integration-circle.