summaryrefslogtreecommitdiffstats
path: root/ci/before_deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/before_deploy.sh')
-rw-r--r--ci/before_deploy.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh
deleted file mode 100644
index 5576c9b..0000000
--- a/ci/before_deploy.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-# This script takes care of building your crate and packaging it for release
-
-set -ex
-
-main() {
- local src=$(pwd) \
- stage=
-
- case $TRAVIS_OS_NAME in
- linux)
- stage=$(mktemp -d)
- ;;
- osx)
- stage=$(mktemp -d -t tmp)
- ;;
- esac
-
- test -f Cargo.lock || cargo generate-lockfile
-
- cross rustc --bin mdbook-open-on-gh --target $TARGET --release
-
- cp target/$TARGET/release/mdbook-open-on-gh $stage/
-
- cd $stage
- tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *
- cd $src
-
- rm -rf $stage
-}
-
-main