mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: fix golden upload in push builds (#5779)
* Fixes that the screenshot goldens are not uploaded properly in push builds.
This commit is contained in:
committed by
Jeremy Elbourn
parent
5357bbcb79
commit
565261ac51
@@ -167,9 +167,9 @@ function uploadGoldenScreenshots() {
|
||||
|
||||
return Promise.all(getLocalScreenshotFiles(SCREENSHOT_DIR).map(fileName => {
|
||||
const filePath = path.join(SCREENSHOT_DIR, fileName);
|
||||
const storageDestination = `${FIREBASE_STORAGE_GOLDENS}/${filePath}`;
|
||||
const storageDestination = `${FIREBASE_STORAGE_GOLDENS}/${fileName}`;
|
||||
|
||||
return bucket.upload(fileName, { destination: storageDestination });
|
||||
return bucket.upload(filePath, { destination: storageDestination });
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user