Sitemap
Sparisoma Viridi

Sparisoma Viridi

butiran-x.github.io

Simple website on GitHub Pages

A not-so-complete step-by-step guidance

4 min readMar 10, 2026

--

It is assumed that you have already GitHub account. When not, just create it.

Create repository

Use + and find New Repository.

Press enter or click to view image in full size

Fill Repository name, Description, Choose visilibity to Public, Turn on Add README.

Press enter or click to view image in full size

Click Create Repository to proceed.

Press enter or click to view image in full size

In this case the repository is on https://github.com/dudung/simple-website.

Create docs/index.html

Use + on the left of green button <> Code and choose Create new file.

Press enter or click to view image in full size

Type docs/index.html in the available field as filename.

Press enter or click to view image in full size

The fill content of the file with following lines.

<html>
<h1>simple-website<h1>
<p>Hello, World!</p>
</html>

Click the green button on the top right Commit changes…

Press enter or click to view image in full size

Click Commit changes.

Press enter or click to view image in full size

Now you have the new file docs/index.html .

Actions

Choose Actions tab on the top, but below your username/simple-website text.

Press enter or click to view image in full size

Type Static HTML and press enter, or simply scroll down to find it.

Press enter or click to view image in full size

Click Configure on the card of Static HTML.

Press enter or click to view image in full size

For now just click Commit changes…, the green button on the top right.

Press enter or click to view image in full size

Confirm it by clicking Commit changes.

Get Sparisoma Viridi’s stories in your inbox

Join Medium for free to get updates from this writer.

Press enter or click to view image in full size

Now you have the static.yaml for deployment of you static HTML files.

Settings

Go to Settings tab.

Press enter or click to view image in full size

Click it to change settings of your repository.

Press enter or click to view image in full size

Scroll down and find Pages on the left menu.

Press enter or click to view image in full size

Choose Branch main/docs.

Press enter or click to view image in full size

Then click Save.

Press enter or click to view image in full size

Go to main page of the repository by clicking username/simple-website link, where it is https://github.com/dudung/simple-website in this example.

Press enter or click to view image in full size

Add website link

Find option button on the right of About and click it.

Press enter or click to view image in full size

Check Use your GitHub Pages website and click Save changes.

Press enter or click to view image in full size

Now you have the link username.github.io/simple-website/ or https://dudung.github.io/simple-website/ for this example.

Open the website

Click the link to open your website hosted on GitHub Pages.

Press enter or click to view image in full size

Now you have the website live on GitHub Pages.

Summaries

After reading this story you are able to

  • Create a new repository.
  • Create a docs/index.html as landing page of your website.
  • Create GitHub Actions Static HTML.
  • Activate GitHub Pages for main/docs folder.
  • Add website link to repository page.
  • Open the website hosted on GitHub Pages.

--

--