Skip to content

Commit 9f34b98

Browse files
committed
try fix release build for re-issued tags
1 parent 8d26089 commit 9f34b98

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Publish Release
33

44
permissions: read-all
55

6+
concurrency:
7+
# stop previous release runs if tag is recreated
8+
group: release-${{ github.ref }}
9+
cancel-in-progress: true
10+
611
on:
712
push:
813
tags:
@@ -42,7 +47,9 @@ jobs:
4247
run: |
4348
TAG_NAME=${GITHUB_REF#refs/tags/}
4449
echo "Verifying tag $TAG_NAME..."
45-
git fetch --tags
50+
# if a tag was deleted and recreated we may have the old one cached
51+
# be sure that we're publishing the current tag!
52+
git fetch --force origin refs/tags/$TAG_NAME:refs/tags/$TAG_NAME
4653
curl -sL https://github.com/${{ github.actor }}.gpg | gpg --import
4754
git tag -v "$TAG_NAME"
4855
- name: Install uv

0 commit comments

Comments
 (0)