Publish a static bundler output on a separate branch to host at GitHub Pages!
Build a static page. By the --dist
argument specify the directory of the build output.
If you want underscore files to work, add the --nojekyll
argument.
npx push-gh-pages -d dist --nojekyll
Make sure you don't have a local branch named with the name of the target branch. Default name is page
.
Also, make sure you don't have anything important on this branch, in the repository. The previous state will be lost.
You can test the script on a fork of this project.
A list of supported options.
A version of the script.
Name of the branch you are pushing to. Default value page
.
The directory of the bundler ouput. Default value dist
.
The address or name of the remote to publish to.
Examples: https://github.com/hedge-code/nextra-docs-template.git
or origin
.
The given is a commit message on the page
branch.
"Adds a .nojekyll file to the page branch.
To not print warnings.