Welcome to Deploy Automatically From GitHub! This course is about putting your project online the way teams do. At the end of it, you merge a pull request with this week’s deals, and GitHub builds the site. A minute or two later, the new deals are live at the store’s own address.
Right now, Generic Grocery Co.’s website has a Git history, reviewed pull requests, a linter and a formatter. And it has exactly one visitor, you.
You’ve put pages live before by uploading files. This week, nobody uploads anything. GitHub Pages puts the site live at its own address, with your GitHub name in it.
The work arrives as three issues on GitHub, plus a quick deals update from GitHub’s web editor. From then on, every merge puts the site live.
What You’ll Learn
By the end of this course, you’ll be able to:
- Set up the project so every merge into
mainbuilds the site and puts it live - Fix a failed deploy from its log, when that deals update breaks the build
- Protect
mainso it only changes through pull requests with a passing check
In the final project, the last deals before Christmas go live through your own pull requests. You hand in the report from npm run check and the live site. Then you walk the mentor through what happens between a merge and the live page.
Before You Start
You should know Git and GitHub up to pull requests with linting and formatting, and how to run an npm and Vite project. You also need a free GitHub account.
The next lesson gets you the store’s site with its whole history. You can start from the ZIP below this video or, if you finished the course before this one, keep your own repository:
The course page has two more downloads, the code for the finished site and the slides from the videos.
How the Course Works
Most lessons are text that you follow along with in your own project. There are also short videos like this one, and quizzes. Along the way, you’ll run into an error or two, and each one is explained on the spot.
Next, you’ll pick up the store’s site.