Skip to content

Commit

Permalink
Migrate website deploments to Netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
17cupsofcoffee committed Mar 18, 2019
1 parent 29f68e6 commit 9d73de1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,6 @@ install:
brew update
&& brew install sdl2;
fi
- if [ "${TRAVIS_OS_NAME}" == "linux" ] && [ "${TRAVIS_RUST_VERSION}" == "1.31.0" ]; then
(test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
&& (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.1" mdbook)
&& cargo install-update -a;
fi

script:
- cargo test --verbose
- if [ "${TRAVIS_OS_NAME}" == "linux" ] && [ "${TRAVIS_RUST_VERSION}" == "1.31.0" ]; then
mdbook build;
fi

deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: book
keep-history: false
fqdn: tetra.seventeencups.net
on:
branch: master
condition: $TRAVIS_OS_NAME == "linux"
condition: $TRAVIS_RUST_VERSION == "1.31.0"
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build]
publish = "book"
command = "curl -sL https://github.com/rust-lang-nursery/mdBook/releases/download/v0.2.1/mdbook-v0.2.1-x86_64-unknown-linux-gnu.tar.gz | tar zxv && ./mdbook build"

0 comments on commit 9d73de1

Please sign in to comment.