Skip to content

alternative command (like github-pages:deploy-master) for github-pages:deploy that will push to master if my repository is XXX.github.io #3772

Closed
@gabbydgab

Description

@gabbydgab

since GH-PAGES for XXX.github.io repo should be in master branch, then ng github-pages:deploy command is irrelevant.

My short-term solution (see https://github.com/gabbydgab/gabbydgab.github.io) is to push the code in develop branch then do git subtree push --prefix dist origin master to push it on master.

My current workflow for my solution:

> ng new GitHubPage
> cd GitHubPage
> git init
> git remote add origin git@github.com:<user>/<user>.github.io.git
> ng build --prod  // assumed that you're done with your page
> git stage -A; git commit -m "initial gh-page"
> git checkout -b develop
> git push -u origin develop
> git subtree push --prefix dist origin master

With this, I would like to request for new feature that will commit code in develop branch then push gh-page to master if my repository is XXX.github.io

New workflow:

> ng new GitHubPage
> cd GitHubPage
> git init
> git remote add origin git@github.com:<user>/<user>.github.io.git
> ng build --prod  // assumed that you're done with your page
> git stage -A; git commit -m "initial gh-page"
> ng github-pages:deploy-master // or similar

So every time I'm done working with my page, then I'll just invoke ng github-pages:deploy-master to push my code with ease.

Metadata

Metadata

Assignees

Labels

needs: investigationRequires some digging to determine if action is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions