Skip to content

Commit

Permalink
ci(archives): Change Linux and macOS archives to .tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz authored and radimkarnis committed Nov 4, 2024
1 parent 03cb414 commit 2fedfd1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build_esptool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 2fedfd1

Please sign in to comment.