From 4de2de08d187cda73f29ac81aa08ceb32b82ae2d Mon Sep 17 00:00:00 2001 From: amtoine Date: Thu, 12 Oct 2023 11:14:14 +0200 Subject: [PATCH] use different extracter --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29220aa..7daffc4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,11 @@ jobs: url=$(echo $tarball | jq '.browser_download_url' | tr -d '"') curl -fLo $name $url - tar xvf $name --directory /tmp + if [ "${{ env.EXT }}" = "tar.gz" ]; then + tar xvf $name --directory /tmp + if [ "${{ env.EXT }}" = "zip" ]; then + unzip $name -d /tmp + fi cp /tmp/$name/nu $HOME/nu - name: Show Nushell Version