File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,12 @@ jobs:
122122 - name : Compress and rename binaries
123123 run : |
124124 for dir in esptool-*; do
125- zip -r "esptool-v${{ steps.get_version.outputs.VERSION }}-${dir#esptool-}.zip" "$dir"
125+ if [[ "$dir" == esptool-win* ]]; then
126+ zip -r "esptool-v${{ steps.get_version.outputs.VERSION }}-${dir#esptool-}.zip" "$dir"
127+ else
128+ chmod -R u=rwx,g=rx,o=rx "$dir"
129+ tar -cvzf "esptool-v${{ steps.get_version.outputs.VERSION }}-${dir#esptool-}.tar.gz" "$dir"
130+ fi
126131 done
127132 - name : Create release
128133 id : create_release
@@ -134,4 +139,6 @@ jobs:
134139 name : Version ${{ steps.get_version.outputs.VERSION }}
135140 draft : true
136141 prerelease : false
137- files : esptool-v${{ steps.get_version.outputs.VERSION }}-*.zip
142+ files : |
143+ esptool-v${{ steps.get_version.outputs.VERSION }}-*.zip
144+ esptool-v${{ steps.get_version.outputs.VERSION }}-*.tar.gz
You can’t perform that action at this time.
0 commit comments