From 77e0be8234d7e5100dcbe816788d5b4d9d4c74b9 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Tue, 10 Dec 2024 00:54:35 +0000 Subject: [PATCH] ci: testing upload build script --- scripts/upload-build.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upload-build.cjs b/scripts/upload-build.cjs index 49fcbbd2..9f19ca89 100644 --- a/scripts/upload-build.cjs +++ b/scripts/upload-build.cjs @@ -29,6 +29,7 @@ fs.readdir(dist, async (err, files) => { files .filter((file) => extensionsToUpload.includes(path.extname(file))) .map(async (file) => { + console.log(`⌛️ Uploading ${file}...`); const fileName = `${new Date().getTime()}-${file}`; const command = new PutObjectCommand({ @@ -40,7 +41,7 @@ fs.readdir(dist, async (err, files) => { await s3.send(command); return { - url: `${process.env.S3_ENDPOINT}/${process.env.S3_BUILDS_BUCKET_NAME}/${fileName}`, + url: `${process.env.BUILDS_URL}/${fileName}`, name: fileName, }; })