mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
ci: testing upload build script
This commit is contained in:
parent
4b93b91373
commit
77e0be8234
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue