Open sag1v opened 5 years ago
I managed to do that with this npm
script:
"deploy": "gh-pages -d [dist folder name]"
You will need an index.html
in there with a relative bundle.js
file. Something like this:
<body>
<div id="root"></div>
<script src="build.js"></script>
</body>
This script will create the gh-pages
branch (or update it if already exists).
Maybe we can add this to the docs?
Thanks @sag1v!
What is the idiomatic way of uploading a presentation to github pages? I've tried to target master/docs (after changing the build of course) but it seems that gh-pages doesn't respect relative path for resources?
I managed to do it a while back but it stopped working, and not sure what is actually the correct way of doing it.
I'm curious if there's a "formal" deploy process for
spectacle-boilerplate
to gh-pages.