From 2b8f0f70933ab69c811a11601538628cf1337e96 Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Mon, 3 May 2021 12:44:48 -0600 Subject: [PATCH] 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. --- .build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.build.yml b/.build.yml index 8491d24..a7ddb55 100644 --- a/.build.yml +++ b/.build.yml @@ -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 -- 2.45.2