~gpanders/gpanders.com

2b8f0f70933ab69c811a11601538628cf1337e96 — Gregory Anders 4 months ago 79ce0c0
Remove root directory from zipped site

Before, the site.zip file contained `netlify.toml` and `public`, which
Netlify failed to properly deploy. Instead, the _contents_ of `public`
need to be at the top level of the zip archive, along with
`netlify.toml`. The `zip` tool doesn't have a way to neatly strip off
the top level root directory, so the best solution is create the archive
in the `public` directory itself.
1 files changed, 3 insertions(+), 1 deletions(-)

M .build.yml
M .build.yml => .build.yml +3 -1
@@ 13,7 13,9 @@ tasks:
  - build: |
      cd gpanders.com
      hugo --minify
      zip -r site.zip netlify.toml public
      zip site.zip netlify.toml
      cd public
      zip -r ../site.zip .
  - deploy: |
      set +x
      . ~/.env