Closed sukhbeersingh closed 4 years ago
Amazing, thanks for starting this off!
I won't have the time to review this today but wanted to start working on this tomorrow anyways, esp. on #7. Thanks for already leaving a hint on where to start. Only thing I need to figure out is how we don't overwrite the CNAME
file in the destination repo, that's needed for stuff around the domain.
Will review tomorrow evening. Thanks @sukhbeersingh!
This PR adds a github actions nodejs.yml file which does two things when a push or pull request is made to the repo:
yarn install
There is a lot that can be done now that we have this file. We can add some tests for our code and then run a test suite. We can add another such yml file that will deploy code to Github pages (see #7 ) whenever a push is made to the master. For this, we can either use an action like jamesIves/github-pages-deploy-action@master or just run the following in a new deploy.yml file:
gatsby build && gh-pages -d public -b master -r https://github.com/openclimatefix/openclimatefix.github.io -a