build: create asset should still try to add asset

This commit is contained in:
João Moreno 2020-12-04 10:36:27 +01:00
parent 7256c3ab26
commit 5e350b1b79

View file

@ -93,16 +93,12 @@ async function main(): Promise<void> {
const blobExists = await doesAssetExist(blobService, quality, blobName);
if (blobExists) {
console.log(`Blob ${quality}, ${blobName} already exists, not publishing again.`);
return;
console.log(`Blob ${quality}, ${blobName} already exists, not uploading again.`);
} 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 = {
platform,
type,