Skip to content

Commit 1a48ef3

Browse files
committed
Attempt at getting Travis CI to automatically push the website
1 parent 032449c commit 1a48ef3

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@ xcode_sdk: iphonesimulator8.1
55
install:
66
- npm install
77
- npm test
8+
9+
# Automatically publish the website
10+
script: ./website/setup.sh; ./website/publish.sh
11+
env:
12+
- secure: "g8Xjbslq4R+3oLVgBvXM5QhiJ+7q+H+dH4+sXReyyZ64M5gf32U7oOjQNVkdx79dnGFc6a619otGsX4RiEkQlkiR+4uCgJUIgPwN4YFCIgYu4Z/0FnbbRu5yyywh5zv4WwGmAtMkgGztoMBnps5gCiPUM/RGIqwVk0Ghbmh5c2k="
13+
branches:
14+
only:
15+
- master

website/setup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
cd ../../
2+
git clone git@github.com:facebook/react-native.git react-native-gh-pages
3+
cd react-native-gh-pages
4+
git checkout origin/gh-pages
5+
git checkout -b gh-pages
6+
git push --set-upstream origin gh-pages
7+
cd ../react-native/website

0 commit comments

Comments
 (0)