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:
Paul Gschwendtner
2017-07-17 20:12:57 +02:00
committed by Jeremy Elbourn
parent 5357bbcb79
commit 565261ac51
+2 -2
View File
@@ -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 });
}));
}