From 2f6ca0b8e56c73c8b9fb340e8e961c18d06fc832 Mon Sep 17 00:00:00 2001 From: Ivo Clarysse Date: Mon, 27 Jan 2025 09:14:29 +0100 Subject: [PATCH] rename --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24ce57d..451d585 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,10 +47,15 @@ jobs: - name: Build .deb package run: make + - name: Rename .deb with version tag (no 'v') + run: | + VERSION=${GITHUB_REF#refs/tags/v} # Extract the version without the 'v' prefix + mv pypltagent.noarch.deb pypltagent-${VERSION}.noarch.deb + - name: Release uses: softprops/action-gh-release@v2 with: - files: pypltagent.noarch.deb + files: pypltagent-${{ github.ref_name#refs/tags/v }}.noarch.deb tag_name: ${{ github.ref_name }} name: ${{ github.ref_name }} body: "Release for version ${{ github.ref_name }}"