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 коммит произвёл Facebook Github Bot 6
Родитель 1d9c7a47fd
Коммит a5e50de1a7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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