Deploying a static HTML and CSS site using Github Pages

I am a developer from Delhi, India
Search for a command to run...

I am a developer from Delhi, India
DISCLAIMER: This might not be the most well-written article since I haven't written in a while and I just wanted to get back to writing with a short article about my experience of the day, so sorry about that I previously used this repository for my...

The release of NextJS 13 brought about a plethora of new and impressive features, with one standout being the updated data fetching and management process. The fetch API replaced the more complicated functions, including getServerSideProps, getStatic...

Looking for a safe and reliable way to authenticate users? Consider implementing magic links. They offer a secure alternative to traditional passwords and can help mitigate the risk of password leaks and forgotten passwords. Magic Link authentication...

Neovim is a powerful text editor that can be customized with plugins to enhance its functionality. In this article, we will explore the top 10 essential Neovim plugins. These plugins can help improve your Neovim experience by adding features such as ...

A type-safe and zero-runtime version of Tailwind CSS

The next step after creating a website, is deploying it to make it available to the whole world. If your site is static, and doesn't use any backend then it is pretty straightforward to deploy your app. In this article, I'm gonna talk about how to deploy a static HTML and CSS site using Github Pages.
First of all create an account at Github. Github is a Git repository hosting service which is owned by Microsoft. It provides a great feature called Github Pages and can be used to deploy static sites.
After registering, click on the button which says New on the top left of the page.

If you know git, you're welcome to push your files to Github. Else, no worries, you can use Github's file upload feature like so:

Last step is to enable Github Pages like so:


masterThis might be
maindepending on the default branch you're working on
/ (root)Then wait for some time and then refresh. Wait till you see a banner which says something like this:

And there it is! You've deployed your site using Github Pages. For example, you can view the sample deployment here.
You can find the sample github repository in the example here: