Skip to content

Commit c1bac12

Browse files
committed
fix to deploy on tags
1 parent b7e1f70 commit c1bac12

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

ci/before_deploy.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
set -ex
2+
13
mktempd() {
24
echo $(mktemp -d 2>/dev/null || mktemp -d -t tmp)
35
}
46

7+
mk_artifacts() {
8+
cargo build --target $TARGET --release
9+
}
10+
511
mk_tarball() {
612
local td=$(mktempd)
713
local out_dir=$(pwd)
@@ -16,4 +22,9 @@ mk_tarball() {
1622
rm -r $td
1723
}
1824

19-
mk_tarball
25+
main() {
26+
mk_artifacts
27+
mk_tarball
28+
}
29+
30+
main

0 commit comments

Comments
 (0)