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
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,9 @@ Made for Travis-CI. Brought to you by the [angular-buch.com](https://angular-buc
16
16
## About
17
17
18
18
This script is similar to the normal `github-pages:deploy` command.
19
-
But by design, the command is limited to the `gh-pages` branch of the same repository.
19
+
But by design, the command is limited to the `gh-pages` branch of the same repository.
20
+
__New: The deploy command is being removed from the core of the CLI very soon! [#4385](https://github.com/angular/angular-cli/pull/4385)__
21
+
20
22
21
23
In contrast to this, the [angular-buch/angular-cli-ghpages](https://github.com/angular-buch/angular-cli-ghpages) script is able to push to any branch on any repository. It's made on top of [tschaub/gh-pages](https://github.com/tschaub/gh-pages).
22
24
__This script works great on [Travis-CI](https://travis-ci.org/).__ No git credentials must be set up in before. Specific environment variables of Travis-CI are evaluated, too. You will like it!
@@ -39,11 +41,12 @@ npm i -g angular-cli-ghpages
39
41
## Usage
40
42
41
43
Execute `angular-cli-ghpages` in order to deploy the project with a build from `dist` folder.
42
-
Note: you have to create the folder in before (e.g. `ng build --prod`)
44
+
__Note: you have to create the `dist`folder in before (e.g. `ng build --prod`)__
43
45
44
46
Usage:
45
47
46
48
```sh
49
+
ng build
47
50
angular-cli-ghpages [OPTIONS]
48
51
```
49
52
@@ -53,6 +56,8 @@ there is also a shorter `ngh` command available
53
56
ngh [OPTIONS]
54
57
```
55
58
59
+
If you want to push to `gh-pages` on the same repository with your default credentials, then just enter `ngh` without any options.
0 commit comments