← Build a website
Lesson 5 of 6

Publish your site for free

20 min Mac or Windows PC

Static sites can be published on the internet for free. Here are two well-known options.

Option 1: Netlify Drop (quickest)

  1. Go to app.netlify.com/drop.
  2. Drag your my-website folder onto the page.
  3. In a few seconds you get a web address like cheerful-otter-12345.netlify.app.
  4. Create a free account to keep the site and change its name.

To update the site, drag the folder in again from your site’s Deploys page.

Option 2: GitHub Pages (what this guide uses)

GitHub is a free service for storing projects, used by millions of programmers. GitHub Pages publishes a website from a GitHub project.

  1. Create a free account at github.com.
  2. Click New repository. Name it, for example, my-website, and make it Public.
  3. Click uploading an existing file, drag in all your website files, and click Commit changes.
  4. Go to Settings › Pages. Under Branch, choose main and click Save.
  5. After a minute or two, your site is live at yourname.github.io/my-website.

To update, upload changed files the same way.

Try it now. Publish your site, then open the address on your phone. If something goes wrong:

I’m trying to publish my static website with [Netlify Drop / GitHub Pages]. I did [steps] and [what happened]. What should I check?

Good to know. Everything on a public website can be seen by anyone. Leave off your home address, phone number, birth date and family members’ full names. An email address you use for the site is enough contact information.