From a5e50de1a77b8dadb3792badb3cc17c4b1dc673a Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Tue, 19 Apr 2016 06:42:20 -0700 Subject: [PATCH] fixed website deployment condition logic Summary:Rookie mistake I made. **Test plan (required)** See that https://circleci.com/gh/facebook/react-native/5462 succeeds deploying the website correctly. Closes https://github.com/facebook/react-native/pull/7063 Differential Revision: D3196198 fb-gh-sync-id: 14fdc94fad0b1e5ff74cc90bb89d2bd1bf29bfa3 fbshipit-source-id: 14fdc94fad0b1e5ff74cc90bb89d2bd1bf29bfa3 --- website/publish-gh-pages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/publish-gh-pages.js b/website/publish-gh-pages.js index c09ccf8fc..36835275d 100644 --- a/website/publish-gh-pages.js +++ b/website/publish-gh-pages.js @@ -96,7 +96,7 @@ if (!CI_PULL_REQUEST && CIRCLE_PROJECT_USERNAME === `facebook`) { if (currentCommit === latestTagCommit) { echo(`------------ DEPLOYING latest`); // leave only releases and blog folder - rm(`-rf`, ls(`*`).filter(name => (name !== 'releases') || (name !== 'blog'))); + rm(`-rf`, ls(`*`).filter(name => (name !== 'releases') && (name !== 'blog'))); cd(`../..`); if (exec(`RN_VERSION=${version} RN_LATEST_VERSION=${latestVersion} \ RN_AVAILABLE_DOCS_VERSIONS=${versions} node server/generate.js`).code !== 0) {