Deploy with GitHub pages
Use the following steps to deploy the generated archive to GitHub pages:
- Create a new empty GitHub repository
- After creation, navigate to the Settings tab of your new GitHub repository
- Navigate to the “Pages” page
- Enable GitHub pages by selecting your
main
branch
- Follow the instructions to Build the web site. Note: unless you use a custom domain, you will need to pass your repo’s name as your
--pathprefix
option.
- Using a terminal, navigate into the
_site
folder
- Run
git init
- Add the new repository as the origin:
git remote add origin git@github.com:USERNAME/REPO.git
- Add and commit all generates files in that folder to the new git repository with
git commit -am "Add Twitter archive"
- Push your commit:
git branch -M main
and git push -u origin main
- Your web site will now be serving at the URL
https://USERNAME.github.io/REPO/
- Optionally, use a custom domain