From 2c6a1c83c05ba08debbaacc9691dff396b4383d2 Mon Sep 17 00:00:00 2001 From: Everaldo Canuto Date: Sun, 25 Feb 2024 01:25:33 -0300 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ced28d3..969c4ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: steps: - name: Create release draft run: | - echo gh release create "${GITHUB_REF_NAME}" \ + gh release create "${GITHUB_REF_NAME}" \ --repo="${GITHUB_REPOSITORY}" \ --title="${GITHUB_REF_NAME}" \ --generate-notes \ @@ -71,10 +71,14 @@ jobs: run: | sudo virt-customize -a *.qcow2 \ --install qemu-guest-agent,locales-all,htop + + - name: Cleanup image + run: sudo virt-sparsify --in-place *.qcow2 - name: Upload artifacts run: | - gh release upload "debian-${DEBIAN_VERSION}-${DEBIAN_RELEASE}" *.qcow2 + # gh release upload "debian-${DEBIAN_VERSION}-${DEBIAN_RELEASE}" *.qcow2 + gh release upload "${GITHUB_REF_NAME}" *.qcow2 rebuild-docker-image: name: Rebuild docker image