Skip to content

Commit

Permalink
fix to deploy on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
benfred committed Jul 14, 2019
1 parent b7e1f70 commit c1bac12
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion ci/before_deploy.sh
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -16,4 +22,9 @@ mk_tarball() {
rm -r $td
}

mk_tarball
main() {
mk_artifacts
mk_tarball
}

main

0 comments on commit c1bac12

Please sign in to comment.