From c1bac126814db5dc7f726a6723f0b4f21c15252e Mon Sep 17 00:00:00 2001 From: Ben Frederickson Date: Sat, 13 Jul 2019 23:57:55 -0700 Subject: [PATCH] fix to deploy on tags --- ci/before_deploy.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index 44d47d9e..04593470 100755 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -1,7 +1,13 @@ +set -ex + mktempd() { echo $(mktemp -d 2>/dev/null || mktemp -d -t tmp) } +mk_artifacts() { + cargo build --target $TARGET --release +} + mk_tarball() { local td=$(mktempd) local out_dir=$(pwd) @@ -16,4 +22,9 @@ mk_tarball() { rm -r $td } -mk_tarball +main() { + mk_artifacts + mk_tarball +} + +main