From 50765823e5719573593a3c4e9c50c7e4584024ac Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Tue, 5 Dec 2023 11:32:49 +0000 Subject: [PATCH] Use dist as the folder to upload --- .github/workflows/build.yml | 2 +- deployment.cjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8bfaa1d3d..5e507274a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,7 @@ jobs: cache: 'npm' registry-url: "https://npm.pkg.github.com" - run: npm ci - - run: npm install --no-save @microbit-foundation/website-deploy-aws@0.5 @microbit-foundation/website-deploy-aws-config@0.9 @microbit-foundation/npm-package-versioner@2 + - run: npm install --no-save @microbit-foundation/website-deploy-aws@0.6 @microbit-foundation/website-deploy-aws-config@0.9 @microbit-foundation/npm-package-versioner@2 if: github.repository_owner == 'microbit-foundation' env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/deployment.cjs b/deployment.cjs index 6089cc5f4..1b68e40bc 100644 --- a/deployment.cjs +++ b/deployment.cjs @@ -18,6 +18,7 @@ const { s3Config } = createDeploymentDetailsFromOptions({ }); module.exports = { + deploymentDir: './dist', ...s3Config, region: 'eu-west-1', removeNonexistentObjects: true,