Skip to content

Commit

Permalink
Attempt at getting Travis CI to automatically push the website
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeux committed Mar 16, 2015
1 parent 032449c commit 1a48ef3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 7 additions & 0 deletions website/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cd ../../
git clone [email protected]: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

0 comments on commit 1a48ef3

Please sign in to comment.