mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 10:10:52 +00:00
ci: Don't run before_deploy unless DEPLOY=1
The before_deploy commands are for when we are building release tarballs, and we don't want to do that for when we are deploying the guide to gh-pages.
This commit is contained in:
parent
ce5dd5931d
commit
ee4fb86400
14
.travis.yml
14
.travis.yml
@ -69,7 +69,6 @@ matrix:
|
||||
|
||||
# Build the guide.
|
||||
- rust: stable
|
||||
env: DEPLOY=0
|
||||
script: (cd guide && cargo install mdbook --vers "^0.1.0" && mdbook build)
|
||||
deploy:
|
||||
provider: pages
|
||||
@ -93,11 +92,14 @@ notifications:
|
||||
on_success: never
|
||||
|
||||
before_deploy:
|
||||
- name="wasm-bindgen-$TRAVIS_TAG-$TARGET"
|
||||
- mkdir $name
|
||||
- cp target/$TARGET/release/{wasm-bindgen,wasm2es6js} $name/
|
||||
- cp README.md LICENSE-MIT LICENSE-APACHE $name/
|
||||
- tar czvf $name.tar.gz $name
|
||||
|
|
||||
if [[ "$DEPLOY" == "1" ]]; then
|
||||
name="wasm-bindgen-$TRAVIS_TAG-$TARGET"
|
||||
mkdir "$name"
|
||||
cp "target/$TARGET/release/{wasm-bindgen,wasm2es6js}" "$name/"
|
||||
cp README.md LICENSE-MIT LICENSE-APACHE "$name/"
|
||||
tar czvf "$name.tar.gz" "$name"
|
||||
fi
|
||||
|
||||
deploy:
|
||||
api_key:
|
||||
|
Loading…
x
Reference in New Issue
Block a user