Skip to content

Commit 217a613

Browse files
authored
Fix typo in publish workflow (#1014)
1 parent 70e0928 commit 217a613

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ jobs:
4141
# Checkout the specific tag
4242
ref: ${{ steps.get_tag.outputs.tag }}
4343

44-
- run: git tag
45-
4644
- name: Setup uv
4745
uses: astral-sh/setup-uv@v6
4846
with:
@@ -59,9 +57,10 @@ jobs:
5957
- name: Make sure pyproject.toml version matches git version
6058
run: |
6159
git_version=$(git describe)
60+
git_version="${git_version:1}" # first character is always `v`
6261
pyproject_version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
6362
64-
if [ "$git_verson" != "$pyproject_version" ]; then
63+
if [ "$git_version" != "$pyproject_version" ]; then
6564
echo "The version specified in pyproject.toml ($pyproject_version) doesn't match the git version ($git_verson)"
6665
echo "You most likely forgot to update pyproject.toml when publishing the release tag"
6766
echo "You can fix this by updating the pyproject version and overwriting the git tag"
@@ -89,7 +88,6 @@ jobs:
8988
id-token: write
9089

9190
steps:
92-
- run: exit 1
9391
- name: Download the distribution files from PR artifact
9492
uses: actions/download-artifact@v4
9593
with:

0 commit comments

Comments
 (0)