Changes to steps for publishing GitHub User Page #6095
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Action taken:
Update to Documentation. Removed the the step for switching to 'gh-pages' branch as it is no longer a viable option.
Reason:
As per stated on GitHub, Pages for User and Organisation could only be published from 'master' branch. The option to switch to another branch is no longer a viable option.
Extract from GitHub:
"If your site is a User or Organization Page that has a repository named .github.io or .github.io , you cannot publish your site's source files from different locations. User and Organization Pages that have this type of repository name are only published from the master branch."
GitHub reference:
https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/
Note:
In the case of a user's page, users only need to do the second step, instead of two.
"Additionally, tweak your package.json scripts to push deployments to master" solely would suffice as per tested on my own Github User Page. (StevenTan.GitHub.io)
Thanks,
Steven