mirror of
https://github.com/status-im/react-native.git
synced 2025-02-03 21:24:31 +00:00
Attempt at getting Travis CI to automatically push the website
This commit is contained in:
parent
032449c54c
commit
1a48ef37f3
@ -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
7
website/setup.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user