how to publish to github pages?

前端 未结 3 539
Happy的楠姐
Happy的楠姐 2021-02-10 05:17

i am having trouble understanding some basic instructions on publishing to github pages. There is a new way to publish Angular projects made with Angular Cli; i am following dir

3条回答
  •  名媛妹妹
    2021-02-10 05:49

    I was successfully able to push to github pages using command

    angular-cli-ghpages --repo=https://github.com/parthghiya/testrepo.git --name=parthghiya --email=parth.ghiya@knowarth.com --no-silent
    

    Repo Link : https://github.com/parthghiya/testrepo

    I did ng build --prod --base href .

    Steps i Did :

    1. Generated My SSH & Added it.

    https://help.github.com/articles/connecting-to-github-with-ssh/

    1. Executed the push command.

    Edit :

    To Add more than one folders

    Create folder parallel to assets, i created 2 folders Parth & Ghiya. Then added following entry in angular-cli.json

    "assets": [
            "assets","parth","ghiya",
            "favicon.ico",
            "manifest.json"
          ],
    

    So the dist folder now contains 3 folders now assets, parth & ghiya. Then executed the above push command as earlier.

提交回复
热议问题