diff --git a/.build.sh b/.build.sh new file mode 100644 index 0000000..d957bd4 --- /dev/null +++ b/.build.sh @@ -0,0 +1,9 @@ +#!/bin/sh +set -e +set -x + +# build for all architectures +cargo build --release + +# tar binary files for upload +tar -czvf target/release/linux_amd64.tar.gz target/release/farm target/release/node target/release/plot target/release/wallet \ No newline at end of file diff --git a/.drone.yml b/.drone.yml index df3ced0..51ee7b7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,8 +33,7 @@ steps: - name: cache path: /vendor commands: - - cargo build --release - - tar -czvf target/release/linux_amd64.tar.gz target/release/farm target/release/node target/release/plot target/release/wallet + - sh .build.sh - name: release image: plugins/gitea-release