Skip to content

Commit cb003bc

Browse files
committed
Update release.yml
1 parent 90ab1d0 commit cb003bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
RPM_FILE=$(find ./out/linux/rpm/x64 -name "*.rpm" -type f | head -1)
9292
if [ -n "$RPM_FILE" ]; then
9393
echo "Found RPM file: $RPM_FILE"
94-
gh release upload ${{ github.ref }} "$RPM_FILE" --repo ${{ github.repository }}
94+
gh release upload ${{ github.ref_name }} "$RPM_FILE" --repo ${{ github.repository }} --clobber
9595
else
9696
echo "No RPM file found"
9797
exit 1
@@ -104,7 +104,7 @@ jobs:
104104
DEB_FILE=$(find ./out/linux/deb/x64 -name "*.deb" -type f | head -1)
105105
if [ -n "$DEB_FILE" ]; then
106106
echo "Found DEB file: $DEB_FILE"
107-
gh release upload ${{ github.ref }} "$DEB_FILE" --repo ${{ github.repository }}
107+
gh release upload ${{ github.ref_name }} "$DEB_FILE" --repo ${{ github.repository }} --clobber
108108
else
109109
echo "No DEB file found"
110110
exit 1
@@ -117,7 +117,7 @@ jobs:
117117
EXE_FILE=$(find ./out/windows/squirrel.windows/x64 -name "*.exe" -type f | head -1)
118118
if [ -n "$EXE_FILE" ]; then
119119
echo "Found EXE file: $EXE_FILE"
120-
gh release upload ${{ github.ref }} "$EXE_FILE" --repo ${{ github.repository }}
120+
gh release upload ${{ github.ref_name }} "$EXE_FILE" --repo ${{ github.repository }} --clobber
121121
else
122122
echo "No EXE file found"
123123
exit 1

0 commit comments

Comments
 (0)