Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github pages deployment docs separate repository step could improve #35117

Closed
2 tasks done
keevan opened this issue Mar 12, 2022 · 0 comments · Fixed by #35118
Closed
2 tasks done

Github pages deployment docs separate repository step could improve #35117

keevan opened this issue Mar 12, 2022 · 0 comments · Fixed by #35118
Labels
type: documentation An issue or pull request for improving or updating Gatsby's documentation

Comments

@keevan
Copy link
Contributor

keevan commented Mar 12, 2022

Preliminary Checks

Summary

I went ahead and followed this as I wanted the source code to live in a different repository.

Thinking all was well, I ran the deploy command, but it actually overwrote the contents of my main branch in my current repository. Further exploration revealed additional options available from the gh-pages command.

  • Have a separate repository for your source code (so username.github.io is used only for deployment and not really for tracking your source code)

In particular, if this step was followed, it wouldn't work out as expected even if following these instructions directly.

Steps to Resolve this Issue

I plan to push a small PR change for this:

  • Have a separate repository for your source code (so username.github.io is used only for deployment and not really for tracking your source code). If going down this route, you will need to add extra option for --repo <repo> (works for https and git urls) in the gh-pages command below.
@keevan keevan added the type: documentation An issue or pull request for improving or updating Gatsby's documentation label Mar 12, 2022
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 12, 2022
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation An issue or pull request for improving or updating Gatsby's documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants