Not able to publish app on gh-pages with angular 7

594 views Asked by At

enter image description hereI am trying to publish my app on gh-pages which is built on angular 7 followed couple of articles but didn't solve my issues I tried steps below:

  1. npm i -g angular-cli-ghpages
  2. ng build --prod --base-href “https://username.github.io/repository_name/
  3. ngh

looked into github issue and followed steps but didn't help either

https://github.com/angular-schule/angular-cli-ghpages/issues/37

ngh --dir dist/[PROJECTNAME] I typed above command it is running without any console error but my gh-pages shows only readme file at hosted url

1

There are 1 answers

0
Pardeep Jain On

You can publish your angular application just pushing bundle (Dist folder with name of docs) on github.

and after that point build in the github repo settings to docs folder.

For more details refer -