mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 23:02:34 +00:00
14 lines
240 B
Bash
14 lines
240 B
Bash
|
# `before_deploy` phase: here we package the build artifacts
|
||
|
|
||
|
set -ex
|
||
|
|
||
|
cargo build --target $TARGET --release
|
||
|
|
||
|
mkdir staging
|
||
|
|
||
|
cp target/$TARGET/release/mdbook staging
|
||
|
|
||
|
cd staging
|
||
|
|
||
|
tar czf ../${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.tar.gz *
|