Skip to content

Commit 9705b3f

Browse files
authored
Merge pull request #16 from ubuntu-robotics/fix/release
Add metadata to qcow2 release
2 parents 0cd0643 + 05b5eb0 commit 9705b3f

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/ubuntu-core-image.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
with:
4747
name: turtlebot3c-ubuntu-image
4848
path: turtlebot3c.img
49+
- name: Upload metadata artifact
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: turtlebot3c-metadata
53+
path: metadata.tar.gz
4954
qcow2-convertion:
5055
runs-on: ubuntu-latest
5156
needs: ubuntu-image
@@ -81,15 +86,18 @@ jobs:
8186
with:
8287
name: turtlebot3c-ubuntu-qcow2-image
8388
path: .
89+
- name: Download TurtleBot3c metadata
90+
uses: actions/download-artifact@v4
91+
with:
92+
name: turtlebot3c-metadata
93+
path: .
8494
# The image must be compressed.
8595
# GH release max file size is 2GB
8696
# and the uncompressed image is 3.5GB.
8797
- name: Compress the Ubuntu image
88-
run: |
89-
tar czf turtlebot3c.img.tar.gz turtlebot3c.img
98+
run: tar czf turtlebot3c.img.tar.gz turtlebot3c.img
9099
- name: Compress the Ubuntu qcow2 image
91-
run: |
92-
tar czf turtlebot3c.qcow2.tar.gz turtlebot3c.qcow2
100+
run: tar czf turtlebot3c.qcow2.tar.gz turtlebot3c.qcow2 metadata.tar.gz
93101
- name: Release
94102
uses: softprops/action-gh-release@v2
95103
with:

0 commit comments

Comments
 (0)