Remove old blob collection use (#23)
This commit is contained in:
Родитель
cb278428d9
Коммит
8c6577e276
|
@ -78,7 +78,6 @@ async function main() {
|
|||
step("Uploading folders to CDN")
|
||||
|
||||
|
||||
exec(`az storage blob upload-batch --source releases/ --destination cdn`)
|
||||
exec(`az storage blob upload-batch --source releases/ --destination '$web' --destination-path cdn/`)
|
||||
|
||||
step("Done!");
|
||||
|
|
|
@ -37,7 +37,6 @@ function main() {
|
|||
exec(`cp -r monaco-editor/node_modules/typescript releases/${optionalTag}/typescript`);
|
||||
}
|
||||
|
||||
exec(`az storage blob upload-batch --auth-mode login --source releases/ --destination cdn --overwrite`);
|
||||
exec(`az storage blob upload-batch --auth-mode login --source releases/ --destination '$web' --destination-path cdn/ --overwrite`);
|
||||
|
||||
step("Updating an index");
|
||||
|
@ -45,10 +44,8 @@ function main() {
|
|||
const isPreRelease = safeTypeScriptPackage.includes("-");
|
||||
const filename = isPreRelease ? "pre-releases.json" : "releases.json";
|
||||
|
||||
exec(`az storage blob download --auth-mode login --container-name indexes --name ${filename} --file ${filename}`);
|
||||
// exec(`az storage blob download --auth-mode login --container-name '$web' --name indexes/${filename} --file ${filename}`);
|
||||
exec(`az storage blob download --auth-mode login --container-name '$web' --name indexes/${filename} --file ${filename}`);
|
||||
exec(`json -I -f ${filename} -e "this.versions = Array.from(new Set([...this.versions, '${safeTypeScriptPackage}'])).sort()"`);
|
||||
exec.continueOnError(`az storage blob upload --auth-mode login --file ${filename} --container-name indexes --name ${filename} --overwrite`);
|
||||
exec.continueOnError(`az storage blob upload --auth-mode login --file ${filename} --container-name '$web' --name indexes/${filename} --overwrite`);
|
||||
|
||||
// Update the next.json to be the latest _known_ nightly build of TS
|
||||
|
@ -57,7 +54,6 @@ function main() {
|
|||
const devReleases = existingReleases.filter(f => f.includes("-dev"));
|
||||
const latest = devReleases.pop();
|
||||
writeFileSync("releases/next.json", JSON.stringify({ version: latest }));
|
||||
exec.continueOnError(`az storage blob upload --auth-mode login --file "releases/next.json" --container-name indexes --name "next.json" --overwrite`);
|
||||
exec.continueOnError(`az storage blob upload --auth-mode login --file "releases/next.json" --container-name '$web' --name "indexes/next.json" --overwrite`);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче