Skip to content

Instantly share code, notes, and snippets.

@stiakov
Created October 16, 2019 18:12
Show Gist options
  • Save stiakov/9f99286ac54ddf0c1f7d1b79fb62e026 to your computer and use it in GitHub Desktop.
Save stiakov/9f99286ac54ddf0c1f7d1b79fb62e026 to your computer and use it in GitHub Desktop.
Deploy to gh-pages from a nested folder.

Trying to deploy from a inner folder to gh-pages, you must have the transpiled assets in the desired directory.

If you want to deploy from the dist folder you should commit it to gh-pages branch.

  • Run this git subtree push --prefix dist origin gh-pages
  • In the GitHub project Settings, down to Github Pages, and in Source branch select: gh-pages.

That's it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment