From 51cd7854f9ff824d51391128f8baf3c812b603fb Mon Sep 17 00:00:00 2001 From: Rodrigo Fernandes Date: Fri, 6 Jan 2023 22:14:04 +0000 Subject: [PATCH] fix s3 upload --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e66f64..4ba0b40 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,8 +22,9 @@ jobs: uses: actions/download-artifact@v3 with: name: docs + path: docs/ - name: Publish to S3 + working-directory: docs run: | - cd docs aws s3 sync --region eu-west-1 --delete . s3://diff2html.xyz --metadata-directive REPLACE --cache-control max-age=31557600 aws cloudfront create-invalidation --region eu-west-1 --distribution-id $AWS_CF_DISTRIBUTION_ID --paths /index.html /demo.html /sitemap.xml /robots.txt