-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from louy2/louy2-travis
Add Travis CI config to release built HTML book on tag
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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 . | ||
- zip too-many-lists.zip rust.css | ||
- 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 |