diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 677bdcf..02a9e70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,8 +24,12 @@ jobs: - name: Install upx 3.96 run: | wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz - tar -xf upx-3.96-amd64_linux.tar.xz - mv ./upx-3.96-amd64_linux/upx /usr/local/bin/upx + + # --strip-components=number - Strip given number of leading components from file names before extraction. + # and extract only ./upx-3.96-amd64_linux/upx file + tar --strip-components 1 -xf upx-3.96-amd64_linux.tar.xz ./upx-3.96-amd64_linux/upx + + mv ./upx /usr/local/bin/upx upx -V - name: Docker Login uses: docker/login-action@v1