Skip to content

docs: we are missing a full description of --buildTarget #123

Closed
@alvachien

Description

@alvachien

Facing the following issue when trying to use "ng deploy":
❌ An error occurred when trying to deploy:
Invalid target string: "github"

Firstly, you can figure out the angular.json from my project: https://github.com/alvachien/knowledgebuilder/blob/master/angular.json

The configuration 'github' already defined, and "ng build -c github" works as expected.
The angular.json also including the options defined "angular-cli-ghpages".

Secondly, no matter run "ng deploy --configuration=github" or "ng deploy --build-target=github" results in same issue.

Could you give me a hint to make it work?

Now I using a workaround by a own NPM script: "deploy-github": "ng build -c github && git push origin :gh-pages && git subtree push --prefix dist origin gh-pages"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions