-
Notifications
You must be signed in to change notification settings - Fork 673
How to publish the website on GitHub Pages
You will need to install Ruby v2.6 or earlier, and the dependencies.
bundle install
Make 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
master
andgh-pages
branches in your fork are even withupstream
.I usually do
git rebase upstream/master
formaster
andgit reset --hard upstream/gh-pages
forgh-pages
because rebase doesn't do well for the latter.Don't forget to fetch
upstream
beforehand. -
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-pages
as 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