Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 649 Bytes

deploy-gh-pages.md

File metadata and controls

43 lines (31 loc) · 649 Bytes

Deploying example app to GitHub Pages

  1. Build the app:
cd example
# Remove existing build files to make sure we are not pushing unnecessary files
rm -rf dist
npm run build
cd ..
  1. Switch to gh-pages branch:
git checkout gh-pages
  1. Copy new build files to root:
cp -R example/dist/* .
  1. Add changed page files, remove old files:
git add index.html index.xxx.js index.xxx.js.map
git rm index.yyy.js index.yyy.js.map
  1. Commit and push:
git commit -m "Deploy example app to GitHub Pages"
git push origin gh-pages
  1. Switch back to main branch:
git checkout main