Skip to content

Commit 4c4f268

Browse files
committed
fix(ci): use explicit filename for deb upload
1 parent 733384b commit 4c4f268

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish-docker.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ jobs:
5050
with:
5151
go-version: '1.22'
5252

53-
- name: Set release version in build script
53+
- name: Set up build variables
54+
id: build_vars
5455
run: |
55-
# The tag is like 'v0.2.2', we just want '0.2.2'
5656
RELEASE_VERSION=${{ github.ref_name }}
5757
VERSION_NUMBER=${RELEASE_VERSION#v}
58+
echo "VERSION_NUMBER=${VERSION_NUMBER}" >> $GITHUB_ENV
5859
sed -i "s/^VERSION=.*/VERSION=\"${VERSION_NUMBER}\"/" build_packages.sh
5960
6061
- name: Build the Debian package
@@ -67,7 +68,7 @@ jobs:
6768
uses: svenstaro/upload-release-action@v2
6869
with:
6970
repo_token: ${{ secrets.GITHUB_TOKEN }}
70-
file: docker-ai_*.deb
71+
file: docker-ai_${{ env.VERSION_NUMBER }}_amd64.deb
7172
asset_name: docker-ai_${{ github.ref_name }}_amd64.deb
7273
tag: ${{ github.ref_name }}
7374
overwrite: true

0 commit comments

Comments
 (0)