- Use this template to create a new repository on Github
- Clone your new repository from Github to your local environment
- Update project name and other relevant attributes in package.json
- Install dependencies (
npm install
) - Generate assets (
npm run build
) - Run server (
npm start
) - Run tests with
npm test
-
Create SSH deploy key
Generate your deploy key with the following command:
ssh-keygen -t rsa -b 4096 -C "$(git config user.email)" -f gh-pages -N ""
You will get 2 files:
gh-pages.pub
is a public keygh-pages
is a private key
-
Set SSH deploy keys in Github repository settings
- Go to Deploy Keys and add your public key with the Allow write access
- Go to Secrets and add your private key as
DEPLOY_KEY
-
Clean up the two now unnecessary gh-pages files on the local system