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
@@ -163,7 +164,7 @@ ng github-pages:deploy --message "Optional commit message"
163
164
This will do the following:
164
165
165
166
- creates GitHub repo for the current project if one doesn't exist
166
-
- rebuilds the app at the current `HEAD`
167
+
- rebuilds the app in production mode at the current `HEAD`
167
168
- creates a local `gh-pages` branch if one doesn't exist
168
169
- moves your app to the `gh-pages` branch and creates a commit
169
170
- edit the base tag in index.html to support github pages
@@ -174,6 +175,16 @@ Creating the repo requires a token from github, and the remaining functionality
174
175
relies on ssh authentication for all git operations that communicate with github.com.
175
176
To simplify the authentication, be sure to [setup your ssh keys](https://help.github.com/articles/generating-ssh-keys/).
176
177
178
+
If you are deploying a [user or organization page](https://help.github.com/articles/user-organization-and-project-pages/), you can instead use the following command:
179
+
180
+
```
181
+
ng github-pages:deploy --user-page --message "Optional commit message"
182
+
```
183
+
184
+
This command pushes the app to the `master` branch on the github repo instead
185
+
of pushing to `gh-pages`, since user and organization pages require this.
186
+
187
+
177
188
### Linting and formatting code
178
189
179
190
You can lint or format your app code by running `ng lint` or `ng format` respectively.
0 commit comments