Skip to content

Commit 57db0ce

Browse files
committed
allow uploading tagged pinned versions for rocm
1 parent 1515d67 commit 57db0ce

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/kcpp-build-release-linux-rocm.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
description: 'Optional commit hash to build from'
88
required: false
99
default: ''
10+
tag_name:
11+
description: 'Optional version tag (e.g. v1.57.1) for stable release file'
12+
required: false
13+
default: ''
14+
1015

1116
env:
1217
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
@@ -77,3 +82,12 @@ jobs:
7782
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7883
run: |
7984
gh release upload rocm-rolling dist/koboldcpp-linux-x64-rocm --clobber
85+
86+
- name: Upload version pinned tagged binary
87+
if: ${{ inputs.tag_name != '' }}
88+
env:
89+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
TAG_NAME: ${{ inputs.tag_name }}
91+
run: |
92+
cp dist/koboldcpp-linux-x64-rocm "dist/koboldcpp-linux-x64-rocm-${TAG_NAME}"
93+
gh release upload rocm-rolling "dist/koboldcpp-linux-x64-rocm-${TAG_NAME}" --clobber

0 commit comments

Comments
 (0)