diff --git a/.woodpecker.yml b/.woodpecker.yml index b3568f9..2a2ac13 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -79,12 +79,8 @@ steps: - tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz - rustup target add wasm32-unknown-unknown - ./cargo-binstall -y trunk - - ./.cargo_home/bin/trunk build --release - - cargo build --release - - ls -la target/release/ibis - - cp target/release/ibis . - - gzip ibis - - ls -la ibis.gz + - export PATH="$PATH:$(pwd)/.cargo_home/bin/" + - ./scripts/build_release.sh when: event: tag diff --git a/scripts/build_release.sh b/scripts/build_release.sh new file mode 100755 index 0000000..b8a8435 --- /dev/null +++ b/scripts/build_release.sh @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +CARGO_TARGET_DIR=target/frontend trunk build --release +cargo build --release +gzip target/release/ibis -c > ibis.gz