Compress iso

This commit is contained in:
Aditya Garg 2023-03-06 18:01:17 +05:30 committed by GitHub
parent e16c55b430
commit dd34994c66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -40,11 +40,18 @@ jobs:
echo unzip cd.zip
EOF
- name: Compress ISO
run: |
cd ${{ github.workspace }}
ISONAME=$(ls ${{ github.workspace }} | grep .iso | rev | cut -c 5- | rev)
tar -czvf ${ISONAME}.tar.gz ${{ github.workspace }}/${ISONAME}.iso
ls -l
- name: Release
if: github.ref == 'refs/heads/kinetic-16,4'
uses: softprops/action-gh-release@v1
with:
files: ${{ github.workspace }}/*.iso
files: ${{ github.workspace }}/*.tar.gz
tag_name: v${{ steps.tag.outputs.tag }}
body_path: ${{ github.workspace }}/.github/workflows/instructions.txt
draft: false