Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Read by thought-leaders and decision-makers around the world. Phone Number: +1-650-246-9381 Email: [email protected]
228 Park Avenue South New York, NY 10003 United States
Website: Publisher: https://towardsai.net/#publisher Diversity Policy: https://towardsai.net/about Ethics Policy: https://towardsai.net/about Masthead: https://towardsai.net/about
Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Founders: Roberto Iriondo, , Job Title: Co-founder and Advisor Works for: Towards AI, Inc. Follow Roberto: X, LinkedIn, GitHub, Google Scholar, Towards AI Profile, Medium, ML@CMU, FreeCodeCamp, Crunchbase, Bloomberg, Roberto Iriondo, Generative AI Lab, Generative AI Lab Denis Piffaretti, Job Title: Co-founder Works for: Towards AI, Inc. Louie Peters, Job Title: Co-founder Works for: Towards AI, Inc. Louis-François Bouchard, Job Title: Co-founder Works for: Towards AI, Inc. Cover:
Towards AI Cover
Logo:
Towards AI Logo
Areas Served: Worldwide Alternate Name: Towards AI, Inc. Alternate Name: Towards AI Co. Alternate Name: towards ai Alternate Name: towardsai Alternate Name: towards.ai Alternate Name: tai Alternate Name: toward ai Alternate Name: toward.ai Alternate Name: Towards AI, Inc. Alternate Name: towardsai.net Alternate Name: pub.towardsai.net
5 stars – based on 497 reviews

Frequently Used, Contextual References

TODO: Remember to copy unique IDs whenever it needs used. i.e., URL: 304b2e42315e

Resources

Take our 85+ lesson From Beginner to Advanced LLM Developer Certification: From choosing a project to deploying a working product this is the most comprehensive and practical LLM course out there!

Publication

How to Deploy a Static Website using Github
Programming

How to Deploy a Static Website using Github

Last Updated on December 10, 2020 by Editorial Team

Author(s): Bala Peddireddy

Make your website and share it publicly in noΒ time.

What isΒ Github?

GitHub is a software development platform. It gives Unlimited cloud storage and supports all programming languages.
GitHub is an open-source platform, and anybody can access it. A lot of people share and download the work in GitHub, which they haveΒ done.

If the project is uploaded with a public repository, it can be seen throughout the world.
You can get a lot of Exposure on GitHub. In such a way that you can find the code of others and use it in your projects.

What is this article allΒ about?

This article is entirely about the deployment of a static website using GitHub in twoΒ ways:

Using MasterΒ Branch

Without using MasterΒ Branch

Any complex website can be linked with so many CSS; JavaScript files can be deployed inΒ GitHub.

Highlights

The alignment of the folders is essential.
The HTML page name must be β€œindex.html.”
Only one Static HTML file can be deployed with one repository in Github.
The HTML file can be linked with many CSS, JavaScript, Bootstrap, and JqueryΒ files.

The intention behind deploying aΒ website

Everybody wants a URL to share their website with the world. You might need a website to project your ideas on your style. You can design a website to display your portfolio and organize your projects.

Let’s getΒ started

In this article, I’ll show you how to deploy it to publish and share your website onΒ GitHub.

1. Create a GitHubΒ account

Make sure you have a GitHub account. Signup in GitHub to create an account. If you have a Github account, ignore this step. By creating this Github account, you are going to get unlimited space to upload data.

2.Create a new GitHub repository

Create a new repository by hitting the + button on the top-right of the screen. A folder is called a repository, according to GitHub terminology.

3. Name your GitHub repository

You need to name your repository. This is the most critical step. Based on the name of the repository, your website URL will be generated.

If you give the input β€œName” as [username].github.io
Then your Website Link will generate as https://[username].github.io/

RecommendedΒ :

If you give the input β€œName” as per your required repository name
Then your Website Link will generate as https://[username].github.io/[given repository name]/

It is entirely based upon your interest in initializing the repository with a README, which will let you immediately clone the repository to your computer. Write about your project in the description part. The repository should be in the public mode to get URLΒ access.

4. Upload your GitHubΒ files

You have seen the website which was opened in my local(Computer).
The alignment, which is there, should not be changed while uploading the files into GitHub.
You can name your files as your wish. But, Follow the standard format while uploading.
The name of the HTML file must be β€œindex.html.”

This is the alignment of files of the β€œsamplewebsitedeploy” in my local(computer).

Drag and Drop all the files one by one and click the β€œcommit changes” button.

In the same alignment, You should upload them in theΒ GitHub

5. Publish yourΒ website

This is the most awaited part you are looking for. Click on the β€œSettings” button.

Scroll down until you see theβ€œGitHub Pages” If you give the input β€œName” as [username].github.io

If you give the input β€œName” as per your required repository name, Now click on the β€œSource” dropdown menu and click on the β€œmaster branch” button.

Be cool, wait for a while, and refresh the page until you see the URL of theΒ website.

Congratulations, your website is ready…!!! πŸ”₯πŸ˜‰

6. Share yourΒ website

You can see your website globally with the generated URL. After clicking the link, you are going to view theΒ website.

If you want to make changes to your website, you just commit the changes and push the files to your repository. Your changes will be seen automatically.

Happy Learning!😎


How to Deploy a Static Website using Github was originally published in Towards AIβ€Šβ€”β€ŠMultidisciplinary Science Journal on Medium, where people are continuing the conversation by highlighting and responding to this story.

Published via Towards AI

Feedback ↓