-
Notifications
You must be signed in to change notification settings - Fork 678
How to publish the website on GitHub Pages
You will need to install Ruby v2.6 or earlier, and the dependencies.
bundle installMake sure you don't have Ruby >= 2.7 or Jekyll >= 4 installed side-by-side. They are not supported and can interrupt website builds. Make sure to remove them if you installed them earlier on this machine.
To install Ruby, you may need to install the MSIS2 component and run ridk install (see https://github.com/oneclick/rubyinstaller2#the-ridk-command).
After that, you are ready to build the website.
-
Make sure that
masterandgh-pagesbranches in your fork are even withupstream.I usually do
git rebase upstream/masterformasterandgit reset --hard upstream/gh-pagesforgh-pagesbecause rebase doesn't do well for the latter.Don't forget to fetch
upstreambeforehand. -
Checkout
master:git checkout master -
Build the website:
gulp build-website-production -
Checkout
gh-pages:git checkout gh-pages -
copy
/site/deploy/**/*to the root directory replacing all files:cp -fR site/deploy/** .(in bash)/site/deploy/**/*survives checkout togh-pagesas it's git-ignored -
stage, commit to
gh-pages, push this branch, then pull request
After the website is pushed to your fork, you can preview it at https://yourname.github.io/testcafe (if your fork has GitHub pages enabled) before merging the pull request