From 79977454015f0c1c1f20dd8a910e41e4f2ace9ee Mon Sep 17 00:00:00 2001 From: Jesse Schmidt Date: Wed, 3 Jul 2024 16:12:00 -0700 Subject: [PATCH] fix release --- .github/workflows/create-prerelease.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-prerelease.yml b/.github/workflows/create-prerelease.yml index 1edb868..0decd84 100644 --- a/.github/workflows/create-prerelease.yml +++ b/.github/workflows/create-prerelease.yml @@ -113,11 +113,12 @@ jobs: cd ~/work/asvec/asvec/bin/packages COMMIT=$(git rev-parse --short HEAD) VER=$(cat ../../VERSION.md) + RPM_VER=$(shell echo $(VER) | sed 's/-/_/g') BRANCH=$(git rev-parse --abbrev-ref HEAD) TAG=${VER}-${COMMIT} [ "${ADDCOMMIT}" = "false" ] && TAG=${VER} FULLCOMMIT=$(git rev-parse HEAD) - gh release create -R github.com/aerospike/asvec --notes-file ../../RELEASE.md --prerelease --target ${FULLCOMMIT} --title "Asvec - v${TAG}" ${TAG} asvec-linux-amd64-${VER}.deb asvec-linux-amd64-${VER}.rpm asvec-linux-amd64-${VER}.zip asvec-linux-arm64-${VER}.deb asvec-linux-arm64-${VER}.rpm asvec-linux-arm64-${VER}.zip asvec-macos-${VER}.pkg asvec-macos-amd64-${VER}.zip asvec-macos-arm64-${VER}.zip asvec-windows-amd64-${VER}.zip asvec-windows-arm64-${VER}.zip + gh release create -R github.com/aerospike/asvec --notes-file ../../RELEASE.md --prerelease --target ${FULLCOMMIT} --title "Asvec - v${TAG}" ${TAG} asvec-linux-amd64-${VER}.deb asvec-linux-amd64-${RPM_VER}.rpm asvec-linux-amd64-${VER}.zip asvec-linux-arm64-${VER}.deb asvec-linux-arm64-${RPM_VER}.rpm asvec-linux-arm64-${VER}.zip asvec-macos-${VER}.pkg asvec-macos-amd64-${VER}.zip asvec-macos-arm64-${VER}.zip asvec-windows-amd64-${VER}.zip asvec-windows-arm64-${VER}.zip - name: "Delete previous pre-release" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}