Loading video player…

Deploy Automatically From GitHub (Overview)

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 main builds the site and puts it live
  • Fix a failed deploy from its log, when that deals update breaks the build
  • Protect main so 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.

Download

Course Slides (.pdf)

222.1 KB
Download

Sample Code (.zip)

420.1 KB

00:00 Welcome to Deploy Automatically From GitHub. It’s about putting your project online the way teams do.

00:07 Here’s Generic Grocery Co.’s website, your project, at the end of this course.

00:13 You merge a pull request with this week’s deals. GitHub builds the site, and a minute or two later, the new deals are live. The address has your GitHub name in it.

00:24 Right now, the site has a Git history, reviewed pull requests, a linter and a formatter. And it has exactly one visitor, you. You’ve put pages live by uploading files.

00:37 This week, nobody uploads anything. GitHub Pages puts the site live. The work arrives as three issues, plus a deals update from GitHub’s web editor. From then on, every merge puts it live.

00:52 You’ll set up the project so every merge into main goes live. When that deals update breaks the build, you’ll fix the failed deploy from its log. And you’ll protect main, so it only changes through pull requests with a passing check.

01:07 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.

01:23 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.

01:33 The next lesson gets you the site with its history. Start from the ZIP below this video, or keep your own repository from the last course. The finished code and the slides are on the course page.

01:46 Most lessons are text you follow in your own project. There are also short videos like this one, and quizzes. You’ll hit an error or two, and each one is explained on the spot.

01:57 Next, you’ll pick up the store’s site.

Become a Member to join the conversation.