- Add the developer dependency gh-pages
- Create a new script in package.json
"rm -rf dist && rm -rf .parcel-cache && npm run build && gh-pages -d dist"
- Update the public url to match the GitHub repository name
--public-url /website
in the npm build script - Stop site running locally
- Check you are on main
git push
npm run publish
This is a temporary workaround till the site is published to a custom domain.