From 44f7dc19ee5c21de8ac2ca4425f99a43d370a407 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 23 Jan 2024 17:17:31 +0100 Subject: [PATCH] include version in path to .deb file --- .github/workflows/build.yml | 11 ++++++----- .../renterd/{ => 1.0.2}/renterd_1.0.2_amd64.deb | Bin 2 files changed, 6 insertions(+), 5 deletions(-) rename debian/pool/main/renterd/{ => 1.0.2}/renterd_1.0.2_amd64.deb (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 898ae54f..96612782 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -70,14 +70,15 @@ jobs: echo "Building ${BUILD_NAME}.deb" dpkg-deb --build ${BUILD_NAME} - # Move the .deb file to debian/pool/main/${{ env.PROJECT }}/ - mv ${BUILD_NAME}.deb ../debian/pool/main/${{ env.PROJECT }}/ - - # Update the Packages file - dpkg-scanpackages ../debian/pool/main/${{ env.PROJECT }}/ /dev/null | gzip -9c > debian/dists/stable/main/binary-${arch}/Packages.gz + # Move the .deb file + mkdir -p ../debian/pool/main/${{ env.PROJECT }}/${VERSION}/ + mv ${BUILD_NAME}.deb ../debian/pool/main/${{ env.PROJECT }}/${VERSION}/ # Remove the temporary folders rm -rf ${BUILD_NAME} + + # Update the Packages file + dpkg-scanpackages ../debian/pool/main/ /dev/null | gzip -9c > debian/dists/stable/main/binary-${arch}/Packages.gz done # Move out of tmp and delete it diff --git a/debian/pool/main/renterd/renterd_1.0.2_amd64.deb b/debian/pool/main/renterd/1.0.2/renterd_1.0.2_amd64.deb similarity index 100% rename from debian/pool/main/renterd/renterd_1.0.2_amd64.deb rename to debian/pool/main/renterd/1.0.2/renterd_1.0.2_amd64.deb