File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ matrix:
98
98
- rust : stable
99
99
100
100
before_script :
101
- - pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
102
101
- curl https://static.rust-lang.org/rustup.sh |
103
102
sh -s -- --add-target=$TARGET --disable-sudo -y --prefix=`rustc --print sysroot`
104
103
- if [ ! -z "$ALT" ]; then
@@ -111,8 +110,13 @@ script:
111
110
else
112
111
src/ci/docker/run.sh $IMAGE $TARGET;
113
112
fi
114
- after_success :
115
- - travis-cargo --only nightly doc-upload
113
+ after_success : |
114
+ [ $TRAVIS_BRANCH = master ] &&
115
+ [ $TRAVIS_PULL_REQUEST = false ] &&
116
+ [ $(uname -s) = Linux ] &&
117
+ pip install ghp-import --user $USER &&
118
+ $HOME/.local/bin/ghp-import -n target/doc &&
119
+ git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
116
120
117
121
env :
118
122
global :
You can’t perform that action at this time.
0 commit comments