Skip to content

Commit

Permalink
ci: testing upload build script
Browse files Browse the repository at this point in the history
  • Loading branch information
thegrannychaseroperation committed Dec 10, 2024
1 parent 4b93b91 commit 77e0be8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/upload-build.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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,
};
})
Expand Down

0 comments on commit 77e0be8

Please sign in to comment.