mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
ci: testing upload build script
This commit is contained in:
parent
4b93b91373
commit
77e0be8234
@ -29,6 +29,7 @@ fs.readdir(dist, async (err, files) => {
|
|||||||
files
|
files
|
||||||
.filter((file) => extensionsToUpload.includes(path.extname(file)))
|
.filter((file) => extensionsToUpload.includes(path.extname(file)))
|
||||||
.map(async (file) => {
|
.map(async (file) => {
|
||||||
|
console.log(`⌛️ Uploading ${file}...`);
|
||||||
const fileName = `${new Date().getTime()}-${file}`;
|
const fileName = `${new Date().getTime()}-${file}`;
|
||||||
|
|
||||||
const command = new PutObjectCommand({
|
const command = new PutObjectCommand({
|
||||||
@ -40,7 +41,7 @@ fs.readdir(dist, async (err, files) => {
|
|||||||
await s3.send(command);
|
await s3.send(command);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
url: `${process.env.S3_ENDPOINT}/${process.env.S3_BUILDS_BUCKET_NAME}/${fileName}`,
|
url: `${process.env.BUILDS_URL}/${fileName}`,
|
||||||
name: fileName,
|
name: fileName,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user