aigovernancereview.com is a Gatsby.js static generated site hosted with Github Pages
Prerequisites:
- Run
yarn
to install dependencies - Run
yarn start
to spin up the development site and start working
Note: because this is on an older version of Gatsby.js, the node-sass
package only works on older versions of node.js. The working version I use is v14.17.4
.
All dev work should be done on feature branches off the development
branch. The master
branch is solely reserved for build files in production. As this is quite a simple site, working directly on the development
branch is fine too.
When you're ready to deploy to Github Pages, checkout to the state you'd like to deploy. I usually merge back to development
and tag the version I wish to deploy.
- To deploy, run
yarn deploy
, which will run Gatsby.js to build the production assets and deploy to themaster
branch. - Important: you'll also need to log into GitHub settings for this page, and manually change the domain from the default Github Pages domain to the custom
www.aigovernancereview.com
domain
Step 2 is a problem I've yet to find the time to fix. I think it's due to the CNAME
file not being stored on the root folder?
- Every deployment changes the domain back to the default GitHub Pages domain
node-sass
doesn't work on newer versions of node.js
This site is maintained by Oly Su.