From 10585083a34ea22a4a4f5ef895760a80f95a2239 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 8 Mar 2024 14:55:55 +0100 Subject: [PATCH] Add release script --- .woodpecker.yml | 8 ++------ scripts/build_release.sh | 6 ++++++ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100755 scripts/build_release.sh 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