From 5549ac7f92db3c96a5f2bd57617ebcb1ef4e39da Mon Sep 17 00:00:00 2001 From: artivis Date: Thu, 3 Oct 2024 09:41:09 +0200 Subject: [PATCH] add metadata to qcow2 release --- .github/workflows/ubuntu-core-image.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ubuntu-core-image.yaml b/.github/workflows/ubuntu-core-image.yaml index ce457ba..2c1f706 100644 --- a/.github/workflows/ubuntu-core-image.yaml +++ b/.github/workflows/ubuntu-core-image.yaml @@ -46,6 +46,11 @@ jobs: with: name: turtlebot3c-ubuntu-image path: turtlebot3c.img + - name: Upload metadata artifact + uses: actions/upload-artifact@v4 + with: + name: turtlebot3c-metadata + path: metadata.tar.gz qcow2-convertion: runs-on: ubuntu-latest needs: ubuntu-image @@ -81,15 +86,18 @@ jobs: with: name: turtlebot3c-ubuntu-qcow2-image path: . + - name: Download TurtleBot3c metadata + uses: actions/download-artifact@v4 + with: + name: turtlebot3c-metadata + path: . # The image must be compressed. # GH release max file size is 2GB # and the uncompressed image is 3.5GB. - name: Compress the Ubuntu image - run: | - tar czf turtlebot3c.img.tar.gz turtlebot3c.img + run: tar czf turtlebot3c.img.tar.gz turtlebot3c.img - name: Compress the Ubuntu qcow2 image - run: | - tar czf turtlebot3c.qcow2.tar.gz turtlebot3c.qcow2 + run: tar czf turtlebot3c.qcow2.tar.gz turtlebot3c.qcow2 metadata.tar.gz - name: Release uses: softprops/action-gh-release@v2 with: