From 565261ac51b7a6829f8c978a09d546e73888fd3f Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 17 Jul 2017 20:12:57 +0200 Subject: [PATCH] build: fix golden upload in push builds (#5779) * Fixes that the screenshot goldens are not uploaded properly in push builds. --- tools/gulp/tasks/screenshots.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gulp/tasks/screenshots.ts b/tools/gulp/tasks/screenshots.ts index a29a84f053d..4e8aa2cec83 100644 --- a/tools/gulp/tasks/screenshots.ts +++ b/tools/gulp/tasks/screenshots.ts @@ -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 }); })); }