From ab814e5bd758d9b11a257f29d3c249bb4b535081 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 17 Sep 2022 22:35:32 +0000 Subject: [PATCH] deploy updates --- .github/workflows/ci.yml | 2 +- scripts/deploy-s3.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18ff1d6e..02086082 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,7 +84,7 @@ jobs: if: github.ref == 'refs/heads/main' with: name: public - path: public + path: public/ deploy: needs: build diff --git a/scripts/deploy-s3.sh b/scripts/deploy-s3.sh index 6382665d..2b189c1b 100755 --- a/scripts/deploy-s3.sh +++ b/scripts/deploy-s3.sh @@ -11,7 +11,7 @@ SITEMAP_URL="https%3A%2F%2Fkremalicious.com%2Fsitemap.xml" set -e; function s3sync { - aws s3 sync public s3://"$1" \ + aws s3 sync ../public s3://"$1" \ --include "*" \ --exclude "*.html" \ --exclude "sw.js" \ @@ -28,7 +28,7 @@ function s3sync { --delete \ --acl public-read - aws s3 sync public s3://"$1" \ + aws s3 sync ../public s3://"$1" \ --exclude "*" \ --include "*.html" \ --include "sw.js" \