From 74b6a30d2f5b6c65b4b751bd552d02312fcc07a3 Mon Sep 17 00:00:00 2001 From: Diogo Mendes Matsubara Date: Mon, 28 Oct 2024 16:46:42 +0100 Subject: [PATCH] fix: zip archives before uploading them publish-* actions expects the archive to be double zipped, so to conform with it, we zip and then upload (which zips it again). --- .github/workflows/release.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0fdaa3504..6a7fb87f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -159,25 +159,32 @@ jobs: cpack -G DEB cpack -G RPM + # Download artifacts client unzips the archive when it downloads, so we double zip, to fulfill expectation of the publish-* actions + - name: Zip archives + run: | + zip -9 zenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-standalone.zip ./build/packages/*.zip + zip -9 libzenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-debian.zip ./build/packages/*.deb + zip -9 libzenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-rpm.zip ./build/packages/*.rpm + - name: Upload library archive uses: actions/upload-artifact@v4 with: name: zenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-standalone.zip - path: ./build/packages/*.zip + path: zenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-standalone.zip - name: Upload DEB archive if: ${{ contains(matrix.build.target, 'linux') }} uses: actions/upload-artifact@v4 with: name: libzenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-debian.zip - path: ./build/packages/*.deb + path: libzenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-debian.zip - name: Upload RPM archive if: ${{ contains(matrix.build.target, 'linux') }} uses: actions/upload-artifact@v4 with: name: libzenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-rpm.zip - path: ./build/packages/*.rpm + path: libzenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-rpm.zip debian: name: Publish Debian packages