TODO: This is out of date. Update this to reflect the new release steps once we get to doing a release.
Before deploying make sure you have a clean working copy with no staged changes. The deploy script will deploy the last commit on your current branch.
The deployment will build the smoldot browser demo into the dist folder and construct a commit containing just that folder with a message containing a reference to the SHA of the commit it came from and push that to the gh-pages branch. The dist folder remains ignored by git.
You can deploy to Github pages like so:
yarn deploy:gh-pages:smoldot-browser-demo
Before deploying make sure you have a Piñata API key and secret and that you have exported them in your shell environment:
PINATA_API_KEY=<your key>
PINATA_API_SECRET=<your secret>
You can then deploy to IPFS like so:
yarn deploy:ipfs:smoldot-browser-demo