language: rust
rust:
  - nightly

addons:
  apt:
    packages:
      - tree

install:
  - git clone --depth 1 https://github.com/steveklabnik/rustbook.git
  - cd rustbook && cargo build --release && cd ..

script:
  - rustbook/target/release/rustbook build text/ book/

after_success:
  - tree book
  - zip -r too-many-lists book

language: rust
rust:
  - nightly

addons:
  apt:
    packages:
      - tree

install:
  - git clone --depth 1 https://github.com/steveklabnik/rustbook.git
  - cd rustbook && cargo build --release && cd ..

script:
  - rustbook/target/release/rustbook build text/ book/

after_success:
  - tree book
  - zip -r too-many-lists.zip book

deploy:
  provider: releases
  api_key: "$GH_DEPLOY_TOKEN"
  file: "too-many-lists.zip"
  skip_cleanup: true
  on:
    tags: true

Add Travis to Github Release deploy config
Add Travis to Github Release deploy config