build/azure-pipelines/common/publish-webview.ts/publish
async function publish(commit: string, files: readonly string[]): Promise<void> {

	console.log('Publishing...');
	console.log('Commit:', commit);
	const storageAccount = process.env['AZURE_WEBVIEW_STORAGE_ACCOUNT']!;

	const blobService = azure.createBlobService(storageAccount, process.env['AZURE_WEBVIEW_STORAGE_ACCESS_KEY']!)
		.withFilter(new azure.ExponentialRetryPolicyFilter(20));

	await assertContainer(blobService, commit);

	for (const file of files) {
		const blobName = basename(file);
		const blobExists = await doesBlobExist(blobService, commit, blobName);
		if (blobExists) {
			console.log(`Blob ${commit}, ${blobName} already exists, not publishing again.`);
			continue;
		}
		console.log('Uploading blob to Azure storage...');
		await uploadBlob(blobService, commit, blobName, file);
	}

	console.log('Blobs successfully uploaded.');
}