You need the following software/ Azure Account, please find details below:-
GitHub Account:- SignUp / SignIn at GitHub
Azure Account:- Get an azure account by clicking on the following link
There is free credit for students and 200 USD credit if you want to get started with Azure.
Azure Static Web Apps helps to solve the problems from source code to global availability.
At the time of building any app it automatically builds and host it from GitHub.
With Azure Static Web Apps, static assets are separated from a traditional web server and are instead served from points globally distributed around the world. This distribution makes serving files much faster as files are physically closer to users.
When you create an Azure Static Web Apps resource, Azure sets up a GitHub Actions or Azure DevOps workflow in the app's source code repository. The workflow monitors a branch of your choice. Every time you push commits or create pull requests into the watched branch, the workflow automatically builds and deploys your app and its API to Azure.
Deploy the project with the help of GitHub Pages.
Create an Azure account with the help of the links provided in this blog and then Log in to the Azure portal.
Now click on the Create a Resource and search for static web apps. Then click on the create button of Static web apps and it will redirect to the Azure Static Web app.
Fill the details properly. At Project Details section, choose the subscription to Azure for Students and then create a resource group according to your wish.
At Static Web App detail section, give a name of the Static Web App of your choice. (In my case, I named it as a Second-Site)
Let the Hosting Plan and Azure Functions and staging details be as default.
Now at the deployment section, choose GitHub and then connect your GitHub account by logging in to GitHub.
The Organisation section will be auto filled with you GitHub username. Then choose the repository of your project in which you created the GitHub pages and set the branch as master.
Review all the details carefully and make correction if needed by clicking on the previous button.
After clicking on the create button, a notification will pop up (…Submitting deployment).
Then after successful deployment , you will get the deployment URL of the project.