mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
chore: fix snapshots upload (#47509)
This commit is contained in:
parent
dd26acc6d0
commit
dd3e1b2a2e
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user