From 2fedfd17e8706fc44daf4f67bd7da7b8bcc12555 Mon Sep 17 00:00:00 2001 From: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com> Date: Fri, 1 Nov 2024 08:16:11 -0300 Subject: [PATCH] ci(archives): Change Linux and macOS archives to .tar.gz --- .github/workflows/build_esptool.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_esptool.yml b/.github/workflows/build_esptool.yml index 6418e606b..8beb7934c 100644 --- a/.github/workflows/build_esptool.yml +++ b/.github/workflows/build_esptool.yml @@ -122,7 +122,12 @@ jobs: - name: Compress and rename binaries run: | for dir in esptool-*; do - zip -r "esptool-v${{ steps.get_version.outputs.VERSION }}-${dir#esptool-}.zip" "$dir" + if [[ "$dir" == esptool-win* ]]; then + zip -r "esptool-v${{ steps.get_version.outputs.VERSION }}-${dir#esptool-}.zip" "$dir" + else + chmod -R u=rwx,g=rx,o=rx "$dir" + tar -cvzf "esptool-v${{ steps.get_version.outputs.VERSION }}-${dir#esptool-}.tar.gz" "$dir" + fi done - name: Create release id: create_release @@ -134,4 +139,6 @@ jobs: name: Version ${{ steps.get_version.outputs.VERSION }} draft: true prerelease: false - files: esptool-v${{ steps.get_version.outputs.VERSION }}-*.zip + files: | + esptool-v${{ steps.get_version.outputs.VERSION }}-*.zip + esptool-v${{ steps.get_version.outputs.VERSION }}-*.tar.gz