Skip to content

Commit 8c5e38a

Browse files
committed
fix: tagging
1 parent 1e1dbe1 commit 8c5e38a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/pr-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,15 @@ jobs:
5252
sed -i "s/version = \"${CURRENT_VERSION}\"/version = \"${RC_VERSION}\"/" pyproject.toml
5353
sed -i "s/__version__ = \"${CURRENT_VERSION}\"/__version__ = \"${RC_VERSION}\"/" src/__init__.py
5454
55-
# Create pre-release tag
55+
# Create pre-release tag (delete if exists)
5656
git add pyproject.toml src/__init__.py
5757
git commit -m "chore: bump version to ${RC_VERSION} [skip ci]" || echo "No changes to commit"
58+
59+
# Delete existing tag if it exists (locally and remotely)
60+
git tag -d "v${RC_VERSION}" 2>/dev/null || true
61+
git push --delete origin "v${RC_VERSION}" 2>/dev/null || true
62+
63+
# Create new tag
5864
git tag -a "v${RC_VERSION}" -m "Pre-release version ${RC_VERSION}"
5965
6066
- name: Push tag to trigger Docker build

0 commit comments

Comments
 (0)