From 57db0ce9cda6a6578ba1a89b8b59d9486c65d808 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 10 Aug 2025 11:04:49 +0800 Subject: [PATCH] allow uploading tagged pinned versions for rocm --- .../workflows/kcpp-build-release-linux-rocm.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/kcpp-build-release-linux-rocm.yaml b/.github/workflows/kcpp-build-release-linux-rocm.yaml index 3010a31d1..672f3e295 100644 --- a/.github/workflows/kcpp-build-release-linux-rocm.yaml +++ b/.github/workflows/kcpp-build-release-linux-rocm.yaml @@ -7,6 +7,11 @@ on: description: 'Optional commit hash to build from' required: false default: '' + tag_name: + description: 'Optional version tag (e.g. v1.57.1) for stable release file' + required: false + default: '' + env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} @@ -77,3 +82,12 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh release upload rocm-rolling dist/koboldcpp-linux-x64-rocm --clobber + + - name: Upload version pinned tagged binary + if: ${{ inputs.tag_name != '' }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAG_NAME: ${{ inputs.tag_name }} + run: | + cp dist/koboldcpp-linux-x64-rocm "dist/koboldcpp-linux-x64-rocm-${TAG_NAME}" + gh release upload rocm-rolling "dist/koboldcpp-linux-x64-rocm-${TAG_NAME}" --clobber