mirror of
https://github.com/rust-lang/mdBook
synced 2025-01-07 10:18:44 +00:00
13 lines
240 B
Bash
13 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 *
|