From 1a48ef37f3ecbc0cc1ae449b3199ca9a1dea0980 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sun, 15 Mar 2015 18:46:48 -0700 Subject: [PATCH] Attempt at getting Travis CI to automatically push the website --- .travis.yml | 8 ++++++++ website/setup.sh | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100755 website/setup.sh diff --git a/.travis.yml b/.travis.yml index 98aeb094f..127ba96cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,3 +5,11 @@ xcode_sdk: iphonesimulator8.1 install: - npm install - npm test + +# Automatically publish the website +script: ./website/setup.sh; ./website/publish.sh +env: + - secure: "g8Xjbslq4R+3oLVgBvXM5QhiJ+7q+H+dH4+sXReyyZ64M5gf32U7oOjQNVkdx79dnGFc6a619otGsX4RiEkQlkiR+4uCgJUIgPwN4YFCIgYu4Z/0FnbbRu5yyywh5zv4WwGmAtMkgGztoMBnps5gCiPUM/RGIqwVk0Ghbmh5c2k=" +branches: + only: + - master diff --git a/website/setup.sh b/website/setup.sh new file mode 100755 index 000000000..69b5bddf4 --- /dev/null +++ b/website/setup.sh @@ -0,0 +1,7 @@ +cd ../../ +git clone git@github.com:facebook/react-native.git react-native-gh-pages +cd react-native-gh-pages +git checkout origin/gh-pages +git checkout -b gh-pages +git push --set-upstream origin gh-pages +cd ../react-native/website