mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 13:44:04 +00:00
Autobuild website on Travis
Had to change around the config since this is now a public repo so we can't use SSH auth. This seems to work though.
This commit is contained in:
parent
4ddd4af1b7
commit
3b73a0f3bd
13
.travis.yml
13
.travis.yml
@ -16,10 +16,19 @@ after_script:
|
|||||||
- rm packager.pid
|
- rm packager.pid
|
||||||
|
|
||||||
# Automatically publish the website
|
# Automatically publish the website
|
||||||
after_success: '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && (cd website; npm install; ./setup.sh; ./publish.sh; echo) || echo'
|
after_success:
|
||||||
|
- |
|
||||||
|
if [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$TRAVIS_BRANCH" = master ]; then
|
||||||
|
echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc
|
||||||
|
cd website
|
||||||
|
npm install
|
||||||
|
./setup.sh
|
||||||
|
./publish.sh
|
||||||
|
fi
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- secure: "g8Xjbslq4R+3oLVgBvXM5QhiJ+7q+H+dH4+sXReyyZ64M5gf32U7oOjQNVkdx79dnGFc6a619otGsX4RiEkQlkiR+4uCgJUIgPwN4YFCIgYu4Z/0FnbbRu5yyywh5zv4WwGmAtMkgGztoMBnps5gCiPUM/RGIqwVk0Ghbmh5c2k="
|
global:
|
||||||
|
- secure: "HlmG8M2DmBUSBh6KH1yVIe/8gR4iibg4WfcHq1x/xYQxGbvleq7NOo04V6eFHnl9cvZCu+PKH0841WLnGR7c4BBf47GVu/o16nXzggPumHKy++lDzxFPlJ1faMDfjg/5vjbAxRUe7D3y98hQSeGHH4tedc8LvTaFLVu7iiGqvjU="
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
@ -8,7 +8,11 @@
|
|||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
cd ../../
|
cd ../../
|
||||||
|
if [ "$TRAVIS" ]; then
|
||||||
|
git clone "https://reactjs-bot@github.com/facebook/react-native.git" react-native-gh-pages
|
||||||
|
else
|
||||||
git clone git://github.com/facebook/react-native.git react-native-gh-pages
|
git clone git://github.com/facebook/react-native.git react-native-gh-pages
|
||||||
|
fi
|
||||||
cd react-native-gh-pages
|
cd react-native-gh-pages
|
||||||
git checkout origin/gh-pages
|
git checkout origin/gh-pages
|
||||||
git checkout -b gh-pages
|
git checkout -b gh-pages
|
||||||
|
Loading…
x
Reference in New Issue
Block a user