yarn install
Rename env file:
env.development.example → .env.development
In project directory:
nxp netlify init
- Create & configure a new site
- Give it a name(this will be your subdomain on netlify).
- Chose your team
- When asked about your Github informations, skip it
Ctrl-C
If you did all steps correctly, you should have new directory
.netlify/state.json
which holds site-id.
If you want to setup production site, you should delete .netlify
directory,
and do the song & dance again with different site name.
On the last note, you need to create NETLIFY_ACCESS_TOKEN
here
To deploy on your own you need to create following env variables in your CircleCI management panel.
At this point you should have all the env variables.
STAGING_NETLIFY_SITE_ID
NETLIFY_ACCESS_TOKEN
PRODUCTION_NETLIFY_SITE_ID
- Ensure this repository is connected with your github username.
- You need to go to CircleCI, and add new project.
https://circleci.com/add-projects/gh/pets
- Find the repository name, and add it.
- Add all env vars there →
https://circleci.com/gh/ultrox/pets/edit#env-vars
Trigger build manually, or by pushing