2018-04-14 05:17:52 +02:00
|
|
|
language: rust
|
|
|
|
sudo: false
|
|
|
|
dist: trusty
|
|
|
|
|
|
|
|
# build website
|
|
|
|
script:
|
|
|
|
- export PATH=$PATH:~/.cargo/bin
|
|
|
|
- |
|
2018-04-14 05:20:13 +02:00
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" ]]; then
|
2018-04-14 05:17:52 +02:00
|
|
|
curl -sL https://github.com/cobalt-org/cobalt.rs/releases/download/v0.12.1/cobalt-v0.12.1-x86_64-unknown-linux-gnu.tar.gz | tar xvz -C $HOME/.cargo/bin &&
|
|
|
|
cobalt build && cp CNAME ./_site/ &&
|
|
|
|
git clone https://github.com/davisp/ghp-import.git &&
|
2018-04-14 05:20:13 +02:00
|
|
|
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -b master -r https://"$GH_TOKEN"@github.com/actix/actix.github.io.git _site &&
|
2018-04-14 05:17:52 +02:00
|
|
|
echo "Uploaded documentation"
|
|
|
|
fi
|