In this brief tutorial, I'll guide you through the process of deploying your project on GitHub Pages. I'm assuming that your project is complete and ready for deployment.
Now, let's follow these instructions step by step:
1. Creating your Repository
To start, create a new public repository on GitHub. If you already have one, feel free to skip this step.
2. Connect your repo with your app
You can use commands below for this:
git remote add origin https://github.com/{username}/{your_repo_name}.git
then create a branch and name it to main by this:
git branch -M main
After this step, you have to push your code on GitHub. Maybe need this:
git push --set-upstream origin main
3. Create your Action And Deploy it
In this step you should go to the Settings tab and then Pages section.
Now you see that GitHub make a URL for your repo that you can see the content in there, but we still have some work to do.
In the pop-up windows, you have the option to include additional content for your commit. If you choose not to, there's no negative consequence.
Once you've committed your changes, navigate to the Actions tab. There, you'll see an indication that your workflow has begun its job. You will need to wait for it to complete:
If you click the link generated by GitHub, you'll be able to see the results. To me, the outcome is as follows:
After a couple of minutes of waiting, the yellow sign turns green, and then your page has been successfully updated!. For me turn in to this:
😊👋
SOCIAL SHARE CARD GENERATOR