#20: π° Deploy to GitHub Pages
Last updated
Was this helpful?
Last updated
Was this helpful?
This is an old version - we should check this :)
To deploy our changes to GitHub pages we will use the angular-cli-ghpages package
You need to have a GitHub user
You need to create a repostiroy for your project.
You need to commit all the changes you made in the project
You need to install angular-cli-ghpages
If you already have a GitHub user you can skip this step. To Create a GitHub user go to GitHub: Fill the regetration form and make sure to validate your email address.
After logging in to GitHub. Click on the Start a project
button, and name the repository ng-heroes-todo
or any other name you like.
Commit all your changes by runing this command in your project directory.
Run the following command to connect your code to your repository. make sure to replace the {YOUR_USERNAME} and {YOUR_REPO} with your github username and repository name.
First install angular-cli-ghpages.
Then simply run:
Your app will be available at [[https://[your-GH-username].github.io/[repo-name](https://[your-GH-username].github.io/[repo-name)](https://[your-GH-username].github.io/[repo-name](https://[your-GH-username].github.io/[repo-name))\]
On (windows) machines you probably run into an issue like the following:
Try to debug it with angular-cli-ghpages -S
. If you get the following error:
you can do the following
Run the following command and replace your token, organisation (your user), repository, username and email:
For more information see .
Create a Personal Access Token here: