Skip to content

Commit

Permalink
add context for why we're using business cat here
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Medrano authored and Xavier Medrano committed May 2, 2024
1 parent 288fc5e commit c36e737
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions deployment/netlify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,21 @@ and come back here when you're ready to deploy your app.
## Deploy a static site to Netlify

The following instructions will help you set up a static site deployment with
Netlify.
Netlify. We use [Business Cat](http://github.com/business-cat) for this purpose.
Business Cat is a machine user that allows us to build and/or install dependencies
from private GitHub repositories. Using a machine account, rather than a personal account,
guards against deployment failures if someone leaves DataMade or is otherwise removed
from a private repository.

### Create a Netlify site and publish the first build

1. Log into the Netlify console at https://app.netlify.com using the DataMade
Netlify account. (The credentials can be found in the shared DataMade LastPass under `Netlify`.)
We currently use a shared account because we don't have access to Netlify Teams.
2. In the console, choose `New site from Git` to configure your app.
3. Select the `GitHub` provider. Netlify will ask you to authenticate with GitHub. We
use [Business Cat](http://github.com/business-cat) for this purpose. Get credentials for Business Cat,
[add it as a collaborator](https://github.com/datamade/deploy-a-site/blob/master/Private-dependencies.md) to the repo you want to integrate,
authenticate with Netlify, and choose the repo from the dropdown menu.
3. Select the `GitHub` provider. Netlify will ask you to authenticate with GitHub.
Get credentials for Business Cat, [add it as a collaborator](https://github.com/datamade/deploy-a-site/blob/master/Private-dependencies.md)
to the repo you want to integrate, authenticate with Netlify, and choose the repo from the dropdown menu.
4. For the `Branch to deploy` option, select `deploy`. If you don't have a `deploy` branch
yet, create one off of `main` so that you can verify the Netlify deployment.
5. For the `Build command` option, input whatever command you use to generate
Expand Down

0 comments on commit c36e737

Please sign in to comment.