Cross-platform tar command

This commit is contained in:
Ajeet D'Souza 2021-05-01 10:42:22 +05:30
parent 6945de1d59
commit 0201252a23
1 changed files with 2 additions and 1 deletions

View File

@ -54,10 +54,11 @@ jobs:
else else
asset="$tmpdir.tar.gz" asset="$tmpdir.tar.gz"
cp "target/${{ matrix.target }}/release/zoxide" "$tmpdir/" cp "target/${{ matrix.target }}/release/zoxide" "$tmpdir/"
tar -I 'gzip --best' -cvzf "$asset" "$tmpdir/" tar -cv "$tmpdir/" | gzip --best > "$asset"
fi fi
echo "ASSET=$asset" >> $GITHUB_ENV echo "ASSET=$asset" >> $GITHUB_ENV
- name: Upload archive - name: Upload archive
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: ${{ env.ASSET }}
path: ${{ env.ASSET }} path: ${{ env.ASSET }}