This repo contains the react source code for the JustHacking website hosted by github pages on the gh-pages branch with the domain JustHacking.com.
There are two important branches:
masterThis contains the source code of the react application.gh-pagesThis containes the/builddirectory generated byyarn buildin a github action
Github actions have been set up to take care of automatically building (yarn build) and deploying the /build directory to the gh-pages branch. This means the /build directory does not need to be pushed to the repo.
- Clone the repo
- Create a new branch for your new feature.
- You can run the website locally running
yarn startornpm start. - Push your changes to a branch and open a PR to
master(if possible get it reviewed by someone) - Once the PR is merges github actions will build and release the website.
Although it is possible to push to master directly this is not the best practice. But not having github enterprise limits the features of branch protection.