---
title: "Site Down During Build"
description: "Recently I noticed a new netlify site of mine was down while I was checking to see if new content was live. Later found out this was consistent after each..."
date: 2021-03-22
published: true
tags:
  - actions
  - dev
  - webdev
template: blog-post
---


Recently I noticed a new netlify site of mine was down while I was checking to
see if new content was live. Later found out this was consistent after each
and every push the site would go gown as soon as I hit push, and would not come
back until the build finished.

## Is this normal?

Do other Netlify sites go down during build???

Short Answer NO. All of my google fu lead me to believe I was alone and none of my other sites do this.

## Digging into my build

My deploy script ends with the following. After resetting keys and watching it build half a dozen
times I determined that everything was working as normal here.

```
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.1.12
with:
    publish-dir: "./markout"
    production-branch: markout
    production-deploy: true
    deploy-message: "Deploy markout from GitHub Actions"
env:
    NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
    NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
```

## Opening the Nelify Console

After poking at the netlify console for hours I realized that the issue was
that netlify was still auto-deploying from a no longer existing directory and
would cause 404's for every page. During build, then my build from GitHub
Actions would deploy with the netlify cli.

![images build](https://dropper.waylonwalker.com/file/62db6e1a-df5b-45e4-90ab-ca30d5059e32.webp)

Netlify really likes to put a lot of warnings up when you are not deploying
from them. I tured off automatic deploys, swore to the netlify gods this is
what I wanted. Pushed a new deploy and 🎉 THE SITE DID NOT GO DOWN.

![site build](https://dropper.waylonwalker.com/file/bc427b17-8c90-4697-b196-00e5fa9a792b.webp)

## TURN OFF AUTOMATIC BUILDS WHEN SWITCHING TO A SELF BUILD

Moral of the story here is to turn off Netlify's automatic builds when building
yourself and using the netlify cli.
