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.
Hiya,
In my attempt to fix a bug, I discovered that the deploy steps implemented in
npm run deploy
were in a confused state.Steps to reproduce:
In a fresh fork of tooty, run
npm run deploy
. You'll see the readme.md as index.html, which is confusing because the documentation says you should see the Elm app. It was actually deployed to/tooty/v2
.The readme.md was converted to index.html by Github now running jekyll build on all projects - even though this isn't a jekyll project.
Therefore, I made some changes:
1. Deploy to repo root directory instead of /tooty/v2
The Readme.md says the deployed URL will be:
but the actual deploy was going to /tooty/v2. This is particularly confusing because Github was converting
readme.md
toindex.html
when trying to build the project with Jekyll.Recommendation: Deleting your
gh-pages
branch one time will remove the confusing state of your branch (with content in both /(root) and /v2)Actions Taken: Added
/v2
to thegh-pages
dist parameter.2.
gh-pages
branch was mixingdeploy/v2
and/(root)
gh-pages's
--add
flag moves the content from--dist
to the root of the project, but we actually should just replace the content at root withdeploy/v2
's content. Removing the--add
flag stops the content from merging together.Actions Taken: Removed
--add
fromgh-pages
3. Github Pages defaults to doing a jekyll build
Per the Github Documentation regarding deploying github pages:
Actions Taken: Added a
touch build/v2/.nojekyll
to thecopy-assets
npm command.4. The project description links to v2
Recommendation: After merging, remove the v2 from the project description on github.