chore: fix snapshots upload (#47509)

This commit is contained in:
MadCcc 2024-02-21 09:43:23 +08:00 committed by GitHub
parent dd26acc6d0
commit dd3e1b2a2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,10 +101,14 @@ async function uploadFile(client, filePath, refValue) {
console.log('Uploading file: %s', filePath);
try {
const targetFilePath = path.relative(process.cwd(), filePath);
const r1 = await client.put(`${refValue}/${targetFilePath}`, filePath, { headers });
const r1 = await client.put(`${refValue}/${targetFilePath}`, filePath, {
headers,
timeout: 60000 * 2,
});
console.log('Uploading file successfully: %s', r1.name);
} catch (err) {
console.error('Uploading file failed: %s', err);
throw err;
}
}