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
{{ message }}
Repository navigation
alternative command (like github-pages:deploy-master) for github-pages:deploy that will push to master if my repository is XXX.github.io #3772
> 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.
changed the title [-]alternative command (like ng github-pages:deploy-master) for ng github-pages:deploy that will push to master if repository is XXX.github.io[/-][+]alternative command (like github-pages:deploy-master) for github-pages:deploy that will push to master if repository is XXX.github.io[/+]on Dec 29, 2016
changed the title [-]alternative command (like github-pages:deploy-master) for github-pages:deploy that will push to master if repository is XXX.github.io[/-][+]alternative command (like github-pages:deploy-master) for github-pages:deploy that will push to master if my repository is XXX.github.io[/+]on Dec 29, 2016
The issues (basically inconvenience) that I encountered are the following:
My profile, https://gabbydgab.github.io, will not load if I commit the application (skeleton) code base in the master branch because of the restriction in parsing the gh-page (index.html) that's why I'm manually committing it to a non-master branch like develop (also serve as my default branch).
Reason: Content from the master branch will be used to build and publish your GitHub Pages site.
I will have extra command, git subtree push --prefix dist origin master, to execute in order to publish my page.
The cli command ng github-pages:deploy is not applicable for username.github.io repository since it publishes the distributed files to gh-pages branch and not in the master.
With this issue (inconvenience), I humbly ask for a new feature to add command like ng github-pages:deploy-master that will publish the distributed files (within dist folder) to the master branch of an username.github.io repository.
@gabbydgab I've the same issue with the command ng github-pages:deploy and Angular CLI. I'll atomize by using a batch file like below:
git status
git add *
git commit -m "deploy"
git pull
git push
ng github-pages:deploy
git checkout gh-pages
echo"copy all your files in this folder to a temporary folder outside this repository (except these inside the `.gitignore` file)"pauserem must be automatic done by using this xcopy . ..\temp
git checkout master
echo"copy all your file form the temporary folder back into the repository"pauserem rmdir /s /q .rem xcopy ..\temp .
git status
git add *
git commit -m "deploy"
git pull
git push
echo"site is deployed!"
git checkout development
Activity
[-]alternative command (like ng github-pages:deploy-master) for ng github-pages:deploy that will push to master if repository is XXX.github.io[/-][+]alternative command (like github-pages:deploy-master) for github-pages:deploy that will push to master if repository is XXX.github.io[/+][-]alternative command (like github-pages:deploy-master) for github-pages:deploy that will push to master if repository is XXX.github.io[/-][+]alternative command (like github-pages:deploy-master) for github-pages:deploy that will push to master if my repository is XXX.github.io[/+]hansl commentedon Dec 30, 2016
@filipesilva I'm not sure I understand this issue, so I'll defer to you.
gabbydgab commentedon Dec 30, 2016
@hansl @filipesilva
Which I did, see https://github.com/gabbydgab/gabbydgab.github.io
The issues (basically inconvenience) that I encountered are the following:
You can read more about the documentation for User/Organization Page that has a repository named username.github.io
git subtree push --prefix dist origin master, to execute in order to publish my page.The cli command
ng github-pages:deployis not applicable for username.github.io repository since it publishes the distributed files to gh-pages branch and not in the master.With this issue (inconvenience), I humbly ask for a new feature to add command like
ng github-pages:deploy-masterthat will publish the distributed files (within dist folder) to the master branch of an username.github.io repository.filipesilva commentedon Feb 3, 2017
Closed via #4385.
@gabbydgab will you find an alternative package in that PR, I think it supports your usecase.
HeinPauwelyn commentedon Mar 18, 2017
@gabbydgab I've the same issue with the command
ng github-pages:deployand Angular CLI. I'll atomize by using a batch file like below:But there is a bug in the site. See the question on Stack Overflow.
Could this ba a solution for your issue or do you know the answer of my question?
Thanks
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.