mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 17:46:57 +03:00
Use the real branch names.
This commit is contained in:
parent
79b8870618
commit
e407993e1f
|
@ -35,14 +35,14 @@ install:
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
if [ "$TEST_TYPE" = build_website ]; then
|
if [ "$TEST_TYPE" = build_website ]; then
|
||||||
if [ "$TRAVIS_BRANCH" = "docs-playground" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then
|
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then
|
||||||
echo "Building the web."
|
echo "Building the web."
|
||||||
nvm install 4.0
|
nvm install 4.0
|
||||||
|
|
||||||
GH_PAGES_DIR="$TRAVIS_BUILD_DIR"/docs/public
|
GH_PAGES_DIR="$TRAVIS_BUILD_DIR"/docs/public
|
||||||
git config --global user.name "Travis CI"
|
git config --global user.name "Travis CI"
|
||||||
git config --global user.email "travis@graphene-python.org"
|
git config --global user.email "travis@graphene-python.org"
|
||||||
git clone --branch gh-pages-seg --depth=50 \
|
git clone --branch gh-pages --depth=50 \
|
||||||
https://graphql-python-bot@github.com/graphql-python/graphene.git \
|
https://graphql-python-bot@github.com/graphql-python/graphene.git \
|
||||||
$GH_PAGES_DIR
|
$GH_PAGES_DIR
|
||||||
cd docs
|
cd docs
|
||||||
|
@ -54,7 +54,7 @@ script:
|
||||||
if ! git diff-index --quiet HEAD --; then
|
if ! git diff-index --quiet HEAD --; then
|
||||||
git add -A .
|
git add -A .
|
||||||
git commit -m "Rebuild website"
|
git commit -m "Rebuild website"
|
||||||
git push "https://${GITHUB_TOKEN}@github.com/graphql-python/graphene.git" gh-pages-seg
|
git push "https://${GITHUB_TOKEN}@github.com/graphql-python/graphene.git" gh-pages
|
||||||
fi
|
fi
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user