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
This commit is contained in:
Konstantin Raev 2016-04-19 06:42:20 -07:00 committed by Facebook Github Bot 6
parent 1d9c7a47fd
commit a5e50de1a7
1 changed files with 1 additions and 1 deletions

View File

@ -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) {