build: create asset should still try to add asset
This commit is contained in:
parent
7256c3ab26
commit
5e350b1b79
1 changed files with 4 additions and 8 deletions
|
@ -93,16 +93,12 @@ async function main(): Promise<void> {
|
||||||
const blobExists = await doesAssetExist(blobService, quality, blobName);
|
const blobExists = await doesAssetExist(blobService, quality, blobName);
|
||||||
|
|
||||||
if (blobExists) {
|
if (blobExists) {
|
||||||
console.log(`Blob ${quality}, ${blobName} already exists, not publishing again.`);
|
console.log(`Blob ${quality}, ${blobName} already exists, not uploading again.`);
|
||||||
return;
|
} else {
|
||||||
|
await uploadBlob(blobService, quality, blobName, filePath, fileName);
|
||||||
|
console.log('Blobs successfully uploaded.');
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Uploading blobs to Azure storage...');
|
|
||||||
|
|
||||||
await uploadBlob(blobService, quality, blobName, filePath, fileName);
|
|
||||||
|
|
||||||
console.log('Blobs successfully uploaded.');
|
|
||||||
|
|
||||||
const asset: Asset = {
|
const asset: Asset = {
|
||||||
platform,
|
platform,
|
||||||
type,
|
type,
|
||||||
|
|
Loading…
Reference in a new issue