From 70ec483f0e4fcceae5e79a4f07f4c3fb13e3ffb8 Mon Sep 17 00:00:00 2001 From: Aditya Garg <85610623+AdityaGarg8@users.noreply.github.com> Date: Mon, 6 Mar 2023 18:57:19 +0530 Subject: [PATCH] Compress ISO --- .github/workflows/CI.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 00e5e10..09c9227 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -106,11 +106,21 @@ jobs: echo unzip cd.zip EOF + - name: Compress ISO + run: | + cd ${{ github.workspace }} + mkdir ISO + mv ${{ github.workspace }}/*.iso ${{ github.workspace }}/ISO + cd ISO + ISONAME=$(ls ${{ github.workspace }}/ISO | grep .iso | rev | cut -c 5- | rev) + tar -czvf ${ISONAME}.tar.gz ${{ github.workspace }}/ISO/${ISONAME}.iso + ls -l + - name: Release if: github.ref == 'refs/heads/jammy' uses: softprops/action-gh-release@v1 with: - files: ${{ github.workspace }}/*.iso + files: ${{ github.workspace }}/ISO/*.tar.gz tag_name: v${{ env.isotag }} body_path: ${{ github.workspace }}/.github/workflows/instructions.txt draft: false