Attempt at getting Travis CI to automatically push the website

This commit is contained in:
Christopher Chedeau 2015-03-15 18:46:48 -07:00
parent 032449c54c
commit 1a48ef37f3
2 changed files with 15 additions and 0 deletions

View File

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

7
website/setup.sh Executable file
View File

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