From 2405c953967786303472111d1b847b5796e4f583 Mon Sep 17 00:00:00 2001 From: Jan Wendland Date: Mon, 29 Nov 2021 21:41:02 +0100 Subject: [PATCH] Unzip linux artifacts after download --- scripts/download.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/download.sh b/scripts/download.sh index 10c9831..896b20a 100755 --- a/scripts/download.sh +++ b/scripts/download.sh @@ -11,6 +11,9 @@ function main() { download "win-x64" download "linux-x64" download "linux-arm" + + extract "linux-x64.zip" + extract "linux-arm.zip" } function download(){ @@ -20,4 +23,11 @@ function download(){ curl -L -H "Authorization: Bearer $GITHUB_PAT" $link --output "$target_dir/$1.zip" } +function extract(){ + pushd "$target_dir" || exit + unzip "$1" + rm "$1" + popd || exit +} + main