You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first step is to [create a GitHub account](https://github.com/join), and then
7
+
[create a repository](https://help.github.com/articles/create-a-repo/) for your project.
8
+
Make a note of the user name and project name in GitHub.
9
+
10
+
Then all you need to do is run `ng build --prod --output-path docs --base-href PROJECT_NAME`, where
11
+
`PROJECT_NAME` is the name of your project in GitHub.
12
+
Make a copy of `dist/index.html` and name it `dist/404.html`.
13
+
14
+
Commit your changes and push. On the GitHub project page, configure it to
15
+
[publish from the docs folder](https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/#publishing-your-github-pages-site-from-a-docs-folder-on-your-master-branch).
16
+
17
+
And that's all you need to do! Now you can see your page at
18
+
`https://USER_NAME.github.io/PROJECT_NAME/`.
19
+
20
+
You can also use [angular-cli-ghpages](https://github.com/angular-buch/angular-cli-ghpages), a full
21
+
featured package that does this all this for you and has extra functionality.
0 commit comments